#Performance
4 posts tagged Performance. All posts
Measuring C# performance with BenchmarkDotNetWrite and read C# microbenchmarks with BenchmarkDotNet: [Benchmark], [Params], baselines, [MemoryDiagnoser], Release builds, and what each results column means.
Finding slow code in Go with pprofProfile Go code with pprof: net/http/pprof in a service, CPU and memory profiles from go test, top and list, heap versus allocs, and fixing a hot allocation.
Caching in Python with functools.cache, lru_cache and cached_propertyMemoise functions with functools.cache and lru_cache, cache per instance with cached_property, avoid the method-caching leak, and add TTLs with cachetools.
Span<T> and Memory<T> in C#: parsing without allocationsParse strings and buffers in C# without allocating: ReadOnlySpan<char> slicing, span overloads of Parse, stackalloc, MemoryExtensions.Split, and Memory<T> for async code.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)