~/talk

Rock Your Code Code and App Performance for Microsoft .Net

slides:none on file

Benchmarks on .NET 6/7 (3,400+ tests) show concrete speed wins: a retail service ran 20k–50k TPS with an 80 ms SLA so every microsecond matters. Specific fixes: remove unused usings and references, avoid setting default values explicitly, use ToUpperInvariant/ToLowerInvariant for comparisons, prefer StringBuilder for many concatenations, pre-size collections and use Length for arrays, cache compiled Regex in a static field (6–9k ns drops to <500 ns), override Equals for structs, and use System.Text.Json instead of Newtonsoft for faster serialization.

AI-written summary · about

  1. 0:00Introduction
  2. 2:42Code performance matters
  3. 8:59Cleaner code performance tips
  4. 13:22String comparisons best practices
  5. 17:03StringBuilder vs concatenation
  6. 18:28Optimizing regex in .NET
  7. 22:05Reference vs structure tips
  8. 25:42Collections performance
  9. 27:51Looping collections efficiently
  10. 30:39Array length vs count
  11. 31:45Fast collection creation
  12. 33:12LINQ vs Lambda performance
  13. 34:16JSON serialization in .NET Core
  14. 35:18Minor tips & Q&A preview
  15. 36:26Resources & closing
~/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.