Slice Strings Without Allocating: ReadOnlySpan<T> in C#
Use ReadOnlySpan<char> to slice strings without heap allocations. Learn ref struct limits and a parsing example.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use ReadOnlySpan<char> to slice strings without heap allocations. Learn ref struct limits and a parsing example.
Learn how to use EF Core Compiled Queries to eliminate LINQ-to-SQL translation overhead in high-throughput services, including a worked example and performance trade-offs.
Stop the N+1 query problem in EF Core. Learn when to use Eager Loading, Lazy Loading, and Split Queries to optimize database round-trips and prevent Cartesian explosions.
In high-read applications using Entity Framework Core, the default tracking behavior can introduce significant memory overhead due to the identity map and snapshotting processes. While AsNoTracking() provides granular control per query, configuring QueryTrackingBehavior.NoTracking globally in the DbContext options shifts the responsibility of state managemen