~/talk

Loop alignment and performance stability in .NET 6

Talkat DotNext 2021 Moscow · 2021-10-21..10-22· [dotnet]
links:none on file
slides:none on file

Teams run thousands of microbenchmarks daily and find noisy regressions; investigation shows loop start alignment drives instability, so .NET 6 adds automatic alignment of loops that pads hot innermost loops to a boundary (prefers 32-byte adaptive alignment with fallbacks to 16 bytes), aligns only small/fast loops and hides padding where possible. Tooling uses super PMI and benchmark.net traces to flag 150–250 affected benchmarks; results show reduced noise and measurable speedups.

AI-written summary · about

  1. 0:00Introduction and context
  2. 10:24Computer architecture basics
  3. 17:48Loop alignment in .NET 6
  4. 25:16Adaptive loop alignment
  5. 31:35Impact and benchmarks
  6. 36:57Future plans in .NET 7
  7. 37:18Data alignment challenges
  8. 40:52Tooling improvements
  9. 43:40Call to action
~/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.