Patterns for high-performance C#.
summary
RavenDB 4.0 optimizations focus on concrete changes and measured wins: building a custom storage layer and binary format, switching to unmanaged byte-string representations and pointer-to-struct wrappers to avoid copies, using struct-based generics to eliminate virtual calls, and per-CPU object pools to cut allocations. Those changes yield ~10x improvements on critical hot paths and a 6.6x speedup in JSON parsing (from ~500s down to ~75s in the presented tests). All techniques are validated with assembly inspection and real workloads and are production-proven in the RavenDB rewrite.
AI-written summary · about
