Revision
Cheat sheets
Articles
8 resultsClear filters
- ArticleFull Access
C# and .NET Performance: Async, Threads and Data Structures
CPU-bound versus I/O-bound work, async/await, multithreading and parallelism, and choosing the right data structure for performance.
.NET Runtime and Concurrency
- ArticleFull Access
Span<T> and Memory<T> in C#: A Practical Reference
Both Span<T> and Memory<T> are views over a contiguous block of memory.
.NET Runtime and Concurrency
- ArticleFull Access
Compilation, the CLR and Memory Management: .NET vs Other Languages
Compilation generally means translating source code into a lower-level form (machine code or bytecode).
.NET Runtime and Concurrency
- ArticleFree
GC Roots, Reachability, and Why Objects Stay Alive in .NET
Trace GC roots and retaining paths to explain why managed objects stay alive, and distinguish eligibility for collection from when collection occurs.
.NET Runtime and Concurrency
- ArticleFree
Allocation-Aware Parsing with ReadOnlySpan<char> in C#
Learn how ReadOnlySpan<char> lets you parse text without copying substrings, how slicing preserves views into the same input, and why ref-struct lifetime rules prevent spans from escaping safe scope boundaries.
.NET Runtime and Concurrency
- ArticleFull Access
Safe ArrayPool<byte> Ownership and Finally-Based Returns
Learn how to rent byte buffers from ArrayPool<byte> safely: track the valid slice length, treat the rent as borrowed ownership, and always return it in finally even when exceptions happen.
.NET Runtime and Concurrency
- ArticleFree
Cancellation Tokens in Async C# APIs: Cooperative Shutdown
Learn how to design, pass, and honor CancellationToken in async C# APIs so callers can stop work cooperatively without leaking tasks or hiding late failures.
.NET Runtime and Concurrency
- ArticleFree
ConcurrentDictionary: Thread Safety Is Not Workflow Atomicity
How to reason about ConcurrentDictionary operations, delegates, duplicate work, and multi-step invariants in production and interviews.
.NET Runtime and Concurrency