3 ms·
I knew it had it but I have no C# experience. Does idiomatic code use this or only more niche optimizations?
by kjeetgill 8y ago
I knew it had it but I have no C# experience. Does idiomatic code use this or only more niche optimizations?
- pjmlp 8y agoAll performance critical data structures are value types. Meaning int, long, char, bool, ..., points, rectangles, pairs, colours, enumerations. Then generics are reiffed. So each instance gets a copy if value types are used. Additionally, you can explicitly allocate value types and arrays on the stack and there are APIs for manual memory management.