~/talk

How difficult can it be to write efficient code?

Talkat Voxxed Days Bucharest 2026 · 2026-04-28..04-29· [devops-and-delivery]
slides:none on file

Uses AsyncProfiler, JMH and JFR to measure a string-prefix example: streams show ~9,900 allocation samples and a throughput score ~6k, a loop and string-builder approach moves scores toward ~12k. Benchmarks on Java 17 vs 21 change relative wins. Replaces three map lookups with a single-pass equals/hashCode comparison to avoid new strings, cutting startup ~5% on JVM and native image from 25ms to 17ms. Continuous measurement and environment changes matter.

AI-written summary · about

  1. 0:00Efficient code writing
  2. 2:58Premature optimization myths
  3. 4:24Measuring performance
  4. 5:49Async-profiler for JVM
  5. 7:14Demo: string prefixing
  6. 10:42Parallel streams & StringBuilder
  7. 15:23Java Microbenchmark Harness
  8. 18:56Java version comparisons
  9. 21:50Environment impact on results
  10. 23:33Optimizing small examples?
  11. 23:57Quarkus config optimization
  12. 27:28Efficient env variable lookups
  13. 30:18HashCode & equals optimizations
  14. 32:05Backwards iteration for speed
  15. 33:33Continuous performance monitoring
  16. 34:59Performance regressions
  17. 35:40Memory allocation optimizations
  18. 36:23One Billion Row Challenge
  19. 37:47AI in performance optimization
  20. 38:31Simplicity vs syntactic sugar
  21. 39:12Optimization vs readability
  22. 40:38Avoiding optimization traps
  23. 41:00JVM updates impact
  24. 41:21Critical path analysis
  25. 41:42Learning from surprises
  26. 42:02Closing & Q&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.