Patterns for high-performance C#
summary
RavenDB 4.0 work focuses on shaving nanoseconds off hot paths by removing allocations, moving parts to unmanaged memory and rewriting key subsystems in C#. Built a custom byte-string/span to avoid GC churn, a streaming JSON parser to replace stateful parsing, and in-C# LC4 compression. Measured wins include halving object pool allocation cost, about 3x faster specialized dictionary paths and a reported 6.6x improvement on a JSON writer between release and a later patch.
AI-written summary · about
chapters (5)
- 0:00Performance fundamentals
- 16:09Micro-optimization tactics
- 28:21Metaprogramming techniques
- 41:52Case study implementation
- 59:50Design tenants and conclusion
related talks
01h 04mTurbocharged: Writing High-Performance C# and .NET Code
01h 14mTurbocharged: Writing High-performance C# and .NET code
01h 01mTurbocharged: Writing High-Performance C# and .NET Code
56mState of the .NET Performance
59mHigh-performance code design patterns in C#
27mC# as a system language
40mReal-world examples on optimizing .NET performance
52mPerformance features in C#
