~/talk

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

Talkat NDC London 2019 · 2019-01-30..02-01· [dotnet]
slides:none on file

Argues performance decisions need concrete context: where code runs, worst cases and data shape, not slogans. Recommends measuring with BenchmarkDotNet (warmup, single-exe runs, GC control, release build, return values) instead of ad-hoc Stopwatch loops. Shows measured surprises: string concatenation vs StringBuilder vs string.Join in the 10–10,000-item range (nanoseconds and memory swing), concrete Dictionary twice as fast as IDictionary, and the .NET hybrid dictionary switching at nine items. Focus on hot paths, goals (time vs RAM) and trends, not gut feeling.

AI-written summary · about

  1. 0:00Intro
  2. 6:05Premature optimization
  3. 8:12Context
  4. 18:44Running benchmarks
  5. 27:12Benchmark features
  6. 28:45String concatenation
  7. 29:26String concatenation results
  8. 31:35What are you trying to achieve
  9. 32:46Dictionary vs ID
  10. 33:21Dictionary vs Interface
  11. 34:16Interface vs Concrete
  12. 34:58Loops vs Link
  13. 36:32Benchmarking Link
  14. 37:27String case conversions
  15. 38:45Can you switch
  16. 39:20Hybrid Dictionary
  17. 41:31Summary
  18. 42:22Questions
~/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.