~/talk

Pragmatic Performance: When to care about perf, and what to do about it

Talkat NDC Oslo 2019 · 2019-06-17..06-21· [web-performance]
slides:none on file

Argues that measurement, not opinion, decides performance work and demonstrates using BenchmarkDotNet with release builds, warmups, return values and the memory diagnoser to get trustworthy comparisons. Shows concrete results: 336 ns vs 897 ns (~3x) for string Join versus LINQ Aggregate, IDictionary iteration suffers IDictionary boxing overhead (about 2x slower and more allocations), .NET Core string ops beat .NET Framework by ~2x, and a hybrid dictionary switches internal storage at nine items.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Premature optimization
  3. 7:05Coding tradeoffs
  4. 13:30How does perf work
  5. 14:12Aggregate method
  6. 19:13Benchmarking Dotnet
  7. 20:52How it works
  8. 21:22Writing a benchmark
  9. 25:28Benchmarking
  10. 31:08Simple benchmark
  11. 33:21String concatenation
  12. 39:29Dictionary
  13. 40:18Dictionary vs IDictionary
  14. 41:31Interfaces
  15. 42:37Loops vs Link
  16. 44:37Measuring the right thing
  17. 45:42Lower invariant
  18. 46:11Dotnet Framework
  19. 47:15Open to anything
  20. 47:57Hybrid Dictionary
  21. 50:10Summary
~/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.