~/talk

How difficult can it be to write efficient code?

Talkat Voxxed Days Ticino 2025 · 2025-01-16..01-17· [java]
slides:none on file

Shows concrete techniques: use AsyncProfiler flame graphs to find hot allocation sites, then isolate code with JMH microbenchmarks to compare variants. Live demos show a naïve stream-and-concat solution, a StringBuilder that performs worse unless reused, and a hand-rolled single-pass sanitizer for Quarkus config lookup that cuts allocations roughly in half. Measured wins include lower JVM/native memory and a native-image cold start drop from ~25ms to ~16ms. Includes practical tips on measuring, warming, and focusing on the biggest hotspots.

AI-written summary · about

  1. 0:00Introduction
  2. 3:30Premature optimization myths
  3. 8:54Performance with async-profiler
  4. 13:36Microbenchmarking with JVM harness
  5. 24:22Quarkus optimizations
  6. 31:47Optimizing config matching
  7. 38:25Optimizations in native images
  8. 40:32Tools and mindset for performance
  9. 44:45Key takeaways and closing remarks
~/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.