~/talk

Writing the Fastest GBDT Library in Rust

Talkat RustConf 2021 · 2021-09-14..09-15· [rust, machine-learning]
links:none on file
slides:none on file

Rust implementation of a gradient boosted decision tree library that trains faster than similar C/C++ libraries, with concrete wins from microoptimizations: parallelizing over features and row chunks with rayon, spotting a cache-murdering indirect access with cargo-flamegraph and inspecting assembly with cargo-asm, eliminating a runtime multiply by casting to a contiguous slice, adding x86_64 prefetch intrinsics, removing bounds checks with get_unchecked, and unsafely asserting nonoverlapping accesses to safely parallelize—benchmarks show significant end-to-end speedup.

AI-written summary · about

  1. 0:00Introduction to Tangram
  2. 0:44Understanding decision trees
  3. 1:56Parallelizing with Rayon
  4. 3:19Profiling with flame graphs
  5. 5:02Optimizing assembly code
  6. 6:48Compiler intrinsics
  7. 7:36Safe and unsafe optimizations
  8. 9:17Results and conclusion
~/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.