~/talk

Secrets of top performance in Java revealed

Talkat GeeCON 2019 · 2019-05-15..05-17· [java]
links:none on file
slides:none on file

Comparative benchmarks parse the Bible text (4.3 MB, ~825k words, ~84.5k lines) with four Java implementations (Java 2 style, Java 7 IO/scanner, Java 8 streams, Java 8 parallel streams) and a C++ version, built with Gradle and available on GitHub; results show cold runs favor C++, but after C1/C2 JIT warmup Java 8 (with C2) matches or beats Java 7 and approaches Java 2, parallel streams become fastest only after heavy optimization, scanner/regex costs dominate some slow paths, and Graal native-image and SubstrateVM give different tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 4:00Competitions
  3. 4:45Top performance
  4. 7:25Java performance
  5. 8:50Real life example
  6. 9:10Frequency
  7. 9:35Word Count
  8. 11:30Interface
  9. 12:35Implementation
  10. 15:30Performance statistics
  11. 20:25Nonblocking IO
  12. 22:35Scanner
  13. 23:15Optimization
  14. 24:30Java 8 implementation
  15. 26:50Java 8 optimization
  16. 28:50Parallel source
  17. 30:30Results
  18. 32:10What about C
  19. 38:05Native Image Tool
  20. 39:35Stopwatch
  21. 40:30Questions
  22. 43:45Concurrency
  23. 44:30Parallel streams
  24. 45:50C implementation
~/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.