~/talk

Adaptive Scrooge - Adaptive Thrift Decoding

Talkat Scale By the Bay 2017 · 2017-11-16..11-18· [data-engineering]
slides:none on file

AdaptiveScrooge samples a few events to learn which Thrift fields are actually accessed and rewrites decoding and the in-memory representation to skip unneeded bytes, avoiding object creation and GC. Implementation uses a wrapper counter during a learning window and ASM bytecode manipulation to generate fast decoders that keep the original byte array for cheap serialization. Benchmarks show up to 20x faster than regular Scrooge and 10x faster than Lazy Scrooge in the hot case, with real-job gains around 10% CPU and a 25% spout CPU drop in a Heron topology.

AI-written summary · about

  1. 0:00Introduction and context
  2. 3:10Problem with deserializing full payloads
  3. 6:41Why columnar formats don't always work
  4. 7:23Real-world use case example
  5. 9:38How adaptive Scrooge solves it
  6. 13:12How adaptive Scrooge works internally
  7. 16:42Bytecode manipulation with ASM
  8. 17:28Fallback and tuning parameters
  9. 20:14Trade-offs and limitations
  10. 21:38Usage and performance results
  11. 23:02Conclusion and comparison
~/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.