~/talk

State of the .NET Performance

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [dotnet]
links:none on file
slides:none on file

C# 7.2 and .NET Core add concrete tools: ref returns & locals eliminate copying and made a benchmark 4.5× faster for large structs; using value types instead of references on a 100M-element loop costs ~3× less time and cache misses. Span slices without copy so substring is ~3× slower and allocates, while ArrayPool rents ~32ns (avoid >85,000 bytes to skip LOH and full GCs); ValueTask lets hot-path async avoid allocations if IsCompleted is checked and synchronous fast-path is used.

AI-written summary · about

  1. 0:00Start
  2. 1:32Value Tuple vs Tuple
  3. 1:55Reference Types: Memory Layout
  4. 2:36Value Types: Memory Layout
  5. 5:30Value Types: No GC
  6. 6:27Value Types: the disadvantages?!
  7. 22:40Struct Tearing
  8. 26:09Stack Only: No Heap Limitations
  9. 36:04Buffer Allocated event
  10. 40:14Async Task Method Builder
  11. 40:58Value Task vs Task: Overhead Only
  12. 52:42C# 7.2: blittable types??
  13. 54:11Summary Start using Value Types today! Use references to avoid copying of Value Types
~/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.