~/talk

A fairy tale of zlib/zip compression in OpenJDK

Talkat EclipseCon 2022 · 2022-10-24..10-27· [java]
links:none on file
slides:none on file

Explains how OpenJDK bundles zlib, when it statically links versus using the system zlib, and how to swap implementations with LD_PRELOAD alternative zlib; shows benchmarks where Intel‑tuned libraries reach 4–6× faster on some Intel workloads for inflate/deflate and describes CRC32/CRC32C intrinsics to speed small reads. Demonstrates a real bug where optimized inflaters write padding past the last byte causing ASM/Spring corruption and how it is resolved (inflater writes padding bug fixed in JDK19/20), plus Java rework of ZipFile (JDK9) and compressed‑size fixes (JDK16).

AI-written summary · about

  1. 0:00Intro
  2. 0:27About me
  3. 2:02What is deflate
  4. 2:30zlib
  5. 3:11gzip
  6. 3:49zip
  7. 4:33history
  8. 5:11zip API
  9. 5:53jar file
  10. 6:29change lock
  11. 6:56zlib integration
  12. 8:50zip file support
  13. 11:20dictionarybased compression
  14. 15:02Huffman compression
  15. 18:30Dflat
  16. 26:26Dynamic vs Static linking
  17. 30:34Issues
  18. 36:38Fix
  19. 45:31Conclusion
~/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.