~/talk

Performance features in C#

Talkat Dotnetos Conference 2021 · 2021-10-05..10-06· [dotnet]
slides:none on file

Covers concrete language changes and measurable wins: introduces Span<T> as a zero-allocation unified memory view, adds ref returns/ref locals to avoid copies (benchmarks show ~10x speed on returns), exposes function pointers for cheaper native interop, and adds skip-locals-init to skip needless stack zeroing. Shows a source generator that compiles regex at build time (avoids runtime IL generation), and new interpolated-string handlers that make formatting almost 2x faster with 80% fewer allocations.

AI-written summary · about

  1. 0:00Intro
  2. 0:54Who am I
  3. 1:14Performance in C
  4. 6:25C Sharp 7
  5. 7:20Apis
  6. 11:28Ref and ReadOnly
  7. 13:28Ref
  8. 20:16Benchmark
  9. 22:05Skip locals in it
  10. 24:11Function pointers
  11. 24:38Native interop
  12. 27:15Source generators
  13. 33:17String interpolation
  14. 37:27Stack allocating
  15. 42:20Ref fields
  16. 43:59Other features
  17. 45:37Questions
~/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.