List of Figures
Figure 1.1 Comparing
String
andStringBuffer
appendsFigure 1.2 Compare
String
toStringBuffer
performanceFigure 1.3 Overabundance of objects takes a toll on performance
Figure 1.4 You could do worse than
String +
Figure 1.5
toUpperCase()
creates a newString
objectFigure 1.6 Performance of
String
equality testsFigure 1.7 The various flavors of
String
equalityFigure 1.8 Comparing
String.getBytes()
to a homegrown oneFigure 1.9 The fast byte-to-char converter has been deprecated
Figure 1.10 A
StringTokenizer
compared to a homegrown oneFigure 1.11 Homegrown tokenizing is faster
Figure 1.12 A faster
charAt()
Figure 1.13 Array copy plus direct indexing outperformed
charAt()
Figure 1.14 Faster alternatives for
startsWith()
Get Java™ Performance and Scalability, Volume 1: Server-Side Programming Techniques now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.