~/talk

Enough java.lang.String to Hang Ourselves ...

Talkat Voxxed Days Milano 2019 · on Saturday, 2019-04-13· [java]
slides:none on file

Benchmarks compare ""+42, StringBuilder and Integer.toString, showing concatenation wins on modern JDKs only after recompilation and invokedynamic optimizations; older JDK6 shows linear HashMap slowdown when many keys share hash code zero, Java7 adds randomized hashing, Java8 turns collision chains into trees improving lookups. G1 String Deduplication and compact strings (Latin‑1 bytes) cut memory but can change max string size and performance; substring used to share backing arrays, now copies; String.format stays very slow and often allocates heavily.

AI-written summary · about

  1. 0:00Introduction
  2. 0:23Java string basics
  3. 2:05String concatenation quiz
  4. 3:21Early Java string history
  5. 6:11Java 1 & 2 changes
  6. 8:10String performance idioms
  7. 10:48Java 6 hashmap security
  8. 14:48Java 4 & 5 enhancements
  9. 17:20Java 6 update optimizations
  10. 18:52Java 7 hashcode changes
  11. 22:12Substring memory leaks
  12. 24:00Java 8 hashmap trees
  13. 25:55G1 GC deduplication
  14. 27:20String interning table
  15. 29:42Java 9 compact strings
  16. 30:28Benchmarking concatenation
  17. 33:48JDK 9 dynamic concatenation
  18. 36:53Impact of compact strings
  19. 39:03String intrinsic methods
  20. 40:59Vectorized string equals
  21. 43:25Final lessons and takeaways
  22. 45:52Q&A and closing
~/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.