~/talk

The Catechism of java.lang.String

TalkinRussianat JPoint 2015 · on Monday, 2015-04-20· [java]
slides:none on file

A talk about performance and memory issues when working with java.lang.String in Java applications, focusing on common problems like expensive concatenation, inefficient substring handling, excessive use of string interning, and pitfalls of deduplication. It also examines misplaced expectations developers may have of the JDK and JVM and how string-related optimizations can immediately reduce memory use and avoid OutOfMemoryError.

AI-written summary · about

  1. 0:00String catechism intro
  2. 2:41Why Strings matter
  3. 5:54String memory overhead
  4. 8:21String concat performance
  5. 10:49String immutability trade-offs
  6. 13:00Integer to String myths
  7. 16:33Lazy logging overhead
  8. 19:21String hashCode impl
  9. 22:11HashMap collision risks
  10. 26:07Worry about hashCode collisions?
  11. 28:02String substring changes
  12. 31:25String intern vs duplication
  13. 34:01String deduplication in practice
  14. 37:34String deduplication features
  15. 40:07String intern myths
  16. 41:54String equals performance
  17. 46:37String splitting and regex
  18. 48:50CharArray vs String iteration
  19. 51:03String search methods
  20. 54:14Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.