~/talk

Unlock the Power of Parallel Computing With SWAR (SIMD Within A Register)

Talkat C++ on Sea 2024 · 2024-07-02..07-05· [web-performance]
links:none on file
slides:none on file

Claims that SIMD-like speed is possible using ordinary CPU registers by packing lanes and using bitwise tricks to prevent lane‑crossing, so no special SIMD hardware required. Delivers a header-only "zoo" library with equality, safe/unsafe arithmetic, and an optimized strlen that uses aligned speculative loads and a find-first-empty shortcut. Benchmarks show the portable zoo version scans a corpus in ~5,500 ns vs ~5,000 ns for one NEON baseline, and combining SWAR with NEON yields ~70% of hand‑tuned assembler performance, so the approach is practical and competitive.

AI-written summary · about

  1. 0:00SWAR introduction and benefits
  2. 6:51Lane overflow in SWAR
  3. 11:54Equality checks with SWAR
  4. 19:03Boolean SWAR concepts
  5. 21:12Generalizing SWAR
  6. 27:17String length with SWAR
  7. 36:16Scaling SWAR widths
  8. 40:29Zoo library basics
  9. 42:56Q&A
~/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.