The Memory Layout of Rust Enums: Discriminants, Niche Optimization, and AlignmentThe Silent Memory Inflation of Rust Enums: Cache Line Thrashing and the Mechanics of Niche Exploitation7 min read·sufyanism.hashnode.devOct 2
What Happens to the CPU Cache During sched_yieldThe Latency Cost of sched_yield: Cache Eviction and TLB Thrashing in Production Runtimes7 min read·sufyanism.hashnode.devSep 28
Dissecting the Rust Vtable: Dynamic Dispatch vs. Monomorphization in AssemblyBranch Mispredictions, Cache Lines, and the Cost of Fat Pointers6 min read·sufyanism.hashnode.devSep 24
Why fork() Doesn't Duplicate Memory: Copy-on-Write and the Page TableUnderstanding the fork() function8 min read·sufyanism.hashnode.devSep 21
What std::mem::forget Actually Does to Heap Allocations?Understanding Heap Allocations in Rust8 min read·sufyanism.hashnode.devSep 17