~/talk

Fast code! By removing all branches!

Talkat !!Con West 2019 · on Monday, 2019-03-25· [devops-and-delivery]
links:none on file
slides:none on file

A migration of Delphi serialization to .NET 2.0 uses run-time code generation and heavy use of delegates and factory-created processors that do all type and transform decisions once and then execute raw method calls, eliminating per-item branching. Reflection is noted as ~1000× slower so custom fast-reflection and removing casts (an unsafe trick that crashes the .NET VM if wrong type) get a 10–20× gain and the final serializer runs about twice as fast as the original Delphi implementation.

AI-written summary · about

  1. 0:00Terrible code crime
  2. 1:06Slow .NET reflection
  3. 2:34Separating decision logic
  4. 4:41XML serialization abstraction
  5. 6:47Object and collection properties
  6. 8:16Sealed types and collections
  7. 9:03Generalizing optimization
  8. 9:48Avoiding code generation
~/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.