~/talk

Get Better App Performance with this One Weird Trick

slides:none on file

Claims that measuring fixes performance: uses Visual Studio profiler plus BenchmarkDotNet, DiagnosticsHub nuget and a real-world CSVHelper clone. Benchmark starts ~131–155 ms; adding an async read‑ahead buffer drops it to ~130 ms (~16% vs worst case), copilot-suggested larger StreamReader buffer cuts another ~6% (142→133 ms). The CPU usage tool exposes hot paths and async continuation noise; the net object allocation tool finds 92k zero-length type[] allocations (~2.2 MB) and reduces live objects from ~164k to ~156k by changing resolver calls, and the changes validate as faster.

AI-written summary · about

  1. 0:00Introduction
  2. 2:08One weird trick to measure performance
  3. 3:55Setting up benchmarks
  4. 8:52Creating benchmark project
  5. 13:44Where to start improving
  6. 14:46CPU usage tool for bottlenecks
  7. 26:49Optimizing CSV parsing with async
  8. 31:26Improving async with read-ahead buffers
  9. 41:17Reducing garbage with .NET allocation tool
  10. 51:05GitHub Copilot for performance insights
  11. 55:25Key takeaways
  12. 57:10Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.