| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Instances are immutable (they're never modified after creation), so being a record seems reasonable and makes things a tad simpler.
There was a problem hiding this comment.
I agree it should be a record struct. Minor nit that the commit message is incorrect since records and record structs are different
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Instances are immutable (they're never modified after creation), so being a record seems reasonable and makes things a tad simpler.
Just a little bit of musing on things when testing other changes.
I initially just made it a record to make it immutable, but then ran the benchmarks being a struct does save a little bit of memory -
Before:
After:
Open for comments on it being a struct or a class. There are similar things in the core library that are structs for reference though.