Revision
Cheat sheets
C# Internals and Performance cheat sheets
17 resultsClear filters
- ArticleFree
Cancellation Tokens in Async C# APIs: Cooperative Shutdown
Pass cancellation tokens through async APIs.
C# Internals and Performance
- ArticleFree
Allocation-Aware Parsing with ReadOnlySpan<char> in C#
Parse text with ReadOnlySpan<char> and slices.
C# Internals and Performance
- ArticleFull Access
Safe ArrayPool<byte> Ownership and Finally-Based Returns
Track the valid slice of a rented byte buffer.
C# Internals and Performance
- NoteFree
Allocation Rate vs Retained Heap in .NET Memory Tuning
Distinguish allocation rate from retained managed heap.
C# Internals and Performance
- ArticleFree
GC Roots, Reachability, and Why Objects Stay Alive in .NET
Trace GC roots and the references keeping objects alive.
C# Internals and Performance
- NoteFree
C# Async Coordination: Cancellation, Timeouts, and Bounded Concurrency
Separate cancellation, waiting timeouts and concurrency limits.
C# Internals and Performance
- PDFFull Access
C# Concurrency Workbook: Tasks, Budgets, Bounded Work, Shared State, Channels and Shutdown
Work through task ownership, cancellation and bounded work.
4 pages · 161 KB · C# Internals and Performance
- PDFFree
C# Cancellation and Deadline Budgets Companion
Distinguish cooperative cancellation from deadline limits.
3 pages · 136 KB · C# Internals and Performance
- ArticleFree
ConcurrentDictionary: Thread Safety Is Not Workflow Atomicity
Separate atomic dictionary operations from multi-step workflows.
C# Internals and Performance
- PDFFree
C# Concurrency and Measured Performance Companion
Reproduce a lost update and compare atomic and locked repairs.
4 pages · 177 KB · C# Internals and Performance
- NoteFree
ReadOnlyMemory and ReadOnlySpan Across Async Boundaries
Choose ReadOnlySpan for short-lived views and ReadOnlyMemory across await.
C# Internals and Performance
- ArticleFull Access
Span<T> and Memory<T> in C#: A Practical Reference
Choose Span or Memory by lifetime and storage needs.
C# Internals and Performance
- ArticleFull Access
Compilation, the CLR and Memory Management: .NET vs Other Languages
Follow C# compilation through IL and the CLR.
C# Internals and Performance
- ArticleFull Access
C# and .NET Performance: Async, Threads and Data Structures
Distinguish CPU-bound work from I/O waits.
C# Internals and Performance
- PDFFree
C# Async and Task Lifecycles Companion
Trace async methods through completed and incomplete awaits.
3 pages · 157 KB · C# Internals and Performance
- NoteFree
C# async/await Pitfalls Cheat Sheet
Spot blocking, lost exceptions and async void mistakes.
C# Internals and Performance
- NoteFree
IDisposable vs GC: Two Resource Lifetimes
Separate managed-memory collection from resource cleanup.
C# Internals and Performance