~/talk

Compiling Formulas at Runtime for the Sake of Performance

TalkinRussianat Joker 2025 · 2025-10-17..10-18· [java]
links:none on file
slides:none on file

At Ozon, calculated features (complex formulas defined by data scientists) used after initial ranking were consuming too much CPU, so the team implemented runtime bytecode generation to execute those formulas. The talk explains the bytecode-generation approach, shows it reduced CPU usage nearly threefold and lowered latency and allocations, and discusses techniques for inspecting JVM JIT behavior and ways to further optimize formula compilation.

AI-written summary · about

  1. 0:00Introduction
  2. 2:06Talk overview
  3. 3:28Search ranking features
  4. 5:54Formula complexity challenges
  5. 8:43Recursive evaluation issues
  6. 10:11Manual vs generated code
  7. 11:58Compile to non-recursive
  8. 13:22Bytecode over Java code
  9. 15:09JVM bytecode basics
  10. 16:13Bytecode compiler design
  11. 18:17Debugging bytecode
  12. 20:02Benchmarking compiled vs evaluated
  13. 21:27Production CPU gains
  14. 23:34Adding range checks
  15. 26:44JIT optimizations with HSDis
  16. 28:33Vectorization results
  17. 30:18Inlining constant arrays
  18. 33:10Vector API on Java 21
  19. 35:34Alternative approaches
  20. 37:42Key takeaways
  21. 38:45Conclusion
  22. 39:31Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.