String Concatenation - JEP Café #7

This #JEPCafe discusses JEP 280: Indify String Concatenation, released with JDK 9. We talk about string concatenation and formatting, both from the pattern and the performance point of view, and the performance gains you may expect. In a nutshell: this JEP gives you performance benefits by just moving from JDK 8 to JDK 17, without modifying your code! The code is available here: ⎯⎯⎯⎯⎯⎯ Chapters ⎯⎯⎯⎯⎯⎯ 0:00 Intro 0:50 What does Indify mean? 1:42 Optimizing String Concatenation with Invokedynamic 2:44 Using a StringBuilder for concatenation 4:55 Delegating concatenation to some other code 6:09 Measuring performances with JMH 7:46 Analyzing the results given by JMH 10:08 When to use a StringBuilder 11:35 Converting numbers to strings 15:30 String formatting 17:00 Outro ⎯⎯⎯⎯⎯⎯ Resources ⎯⎯⎯⎯⎯⎯ ◦ ➱ ◦ How to use JMH ➱ ◦ JEP 280: Indify Strin
Back to Top