Code snippets testing performance of .Net features using Benchmark.dotnet.core
- The Stack and the Heap
- Value Types
- Reference Types
- Boxing and unboxing
- Immutable Strings
- How to prevent boxing and unboxing
- Fast string concatenation
- Fast collections
- Fast arrays
- Throwing and catching exceptions
- For versus Foreach
- Fast Garbage Collection
- Fast delegates
- Fast class factories
- Introduction to CIL sintax and instructions
- Local variable locations
- The evaluation stack
- Arrays on the stack
- Pointers
- Modifying String Constants