~/talk

No GC coding techniques for low latency Java

Talkat JDD 2019 · 2019-10-14..10-15· [java]
links:none on file
slides:none on file

Claims that production systems treat any full GC as an incident and allow GC only during initialization, and that applying low‑GC patterns removes those pauses. Practical techniques shown: presize collections to avoid reallocations (example: a planet factory called 1,000,000 times creates 8 objects instead of 1,000,000), use primitive collections (Trove/fastutil) to avoid boxing, singletons/enums for reuse, object pools, thread‑locals, log‑guarding and reusable mutable objects. Trade‑offs: added complexity, testing and dependency risk.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Low latency
  3. 9:57Small discussion
  4. 15:17Questions
  5. 15:32Singleton
  6. 16:07Benefits
  7. 16:41Tradeoffs
  8. 17:47Enumeration
  9. 18:10Flyweight
  10. 19:40Precise and Collections
  11. 20:16Primitive Type Collections
  12. 21:36String Builder
  13. 21:59enumerate in constants
  14. 23:51clone guard
  15. 24:41reusable object
  16. 26:30QA
~/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.