~/talk

Optimized String Processing in RISC-V: How Toolchain Improvements Can Boost Performance

Talkat Open Source Summit Europe 2024 · 2024-09-16..09-18· [rust]
links:none on file
slides:none on file

Claims a concrete code pattern: use RISC‑V bitwise byte ops (example orc.b) and the find-zero trick to detect NUL bytes with two–three instructions instead of ten, yielding up to 147% throughput on one board and ~290% on another in microbenchmarks. Implements changes in GCC and glibc with runtime patching via the IUN/PLT mechanism and Linux HW probe, plus kernel tweaks; handles alignment and page‑crossing to avoid faults. Includes assembly listings and upstream patches (GCC 14 support).

AI-written summary · about

  1. 0:00Optimized string processing intro
  2. 1:24String functions focus
  3. 3:10RISC-V and bit extensions
  4. 4:58String function challenges
  5. 7:22SIMD in RISC-V P extension
  6. 8:47Lamport string comparison
  7. 10:11Zero-byte detection in GCC
  8. 14:36String optimization strategy
  9. 15:41Pointer alignment in strings
  10. 19:00Reducing zero-byte instructions
  11. 20:31GCC optimization integration
  12. 22:43glibc IFUNC runtime
  13. 25:35Benchmarking performance
  14. 26:37Micro-benchmark length
  15. 30:32Dhrystone benchmark performance
  16. 31:38SPEC CPU 2017 results
  17. 33:04Upstream optimization status
  18. 34:48Optimizations summary
  19. 35:10Q&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.