~/talk

What Every Java Programmer Should Know About Strings

Talkat JCON Europe 2023 · on Tuesday, 2023-06-20· at 16:00· Cinema 7, Im Mediapark 1, 50670 Köln, Germany· [java]
links:none on file
slides:none on file

Covers concrete JVM changes: Java 9 replaces char[] with a byte[] plus a coder flag so compact strings (JEP 254) uses one byte for Latin1 and two for UTF‑16, Java 7 removed substring offsets to avoid retained-large-string leaks, string deduplication (G1 only) deduplicates backing byte arrays (available since Java 8u20) and cut Eclipse IDE heap by about 25% in a case study, and concatenation moves to invokedynamic string concat (stringConcatFactory) since Java 9; recent builds show string hashCode ~6× faster and String.format ~3× faster in Java 17 vs 16.

AI-written summary · about

  1. 0:00Introduction to strings
  2. 3:58String pool and interning
  3. 16:46Compact strings in Java
  4. 26:20Compressed strings history
  5. 27:25String deduplication
  6. 33:18Indify string concatenation
  7. 38:02JDK improvements summary
~/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.