String Concatenation - JEP Café #7

preview_player
Показать описание
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!

⎯⎯⎯⎯⎯⎯ 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 ⎯⎯⎯⎯⎯⎯

Categories: #Java #OpenJDK #JDK #JDK17
Рекомендации по теме
Комментарии
Автор

Not only JDK is move fast. But you guys are spreading the knowledge and explaining the use of the new features and its performance benefits. That's really great !!
I am a beginner and I am getting ton of high quality knowledge from these videos and the articles which u write. Thanks for all this . ❤️

dreamerLevel
Автор

I didn't realize how naïvely the StringBuilder is handled in certain scenarios. 🤯 Very useful information here!

joshaustintech
Автор

Perfect content for coffee mornings, thanks a bunch!

PabloSagoz
Автор

Very nice video. Its sad that we will have to wait for next month. Please also include concurrency topics in these JEP videos.

MakeItStik
Автор

Great stuff covering fundamental concepts about daily work as it is string concatenation!

gabosol
Автор

Awesome stuff, love to "unlearn" things like always favoring string concatenation with StringBuilder over plain strings

kookoon
Автор

In-depth explanation as always. In case anyone is interested in going further with JMH; here are two courses on Pluralsight I would recommend. 1. "Micro-experimentation Tools in Java 9" and 2. "What's new in Java 12". Thanks once again José.

lukmanmudi
Автор

Amazed to see that the coffee is still warm after 17 minutes, must be a good glass! Where can we get these? :D Well explained video by the way regarding the jdk improvements

Hakky
Автор

within 1 standard deviation is 68%
within 2 standard deviations is 95 %
within 3 standard deviations is 99.7%

Автор

Can you please crank up the volume in jep cafe videos? Find myself not being able to hear anything while in transport - happens always only with these videos.

askarkalykov
Автор

I'm pretty sure that at least the JDK 8 compiler could optimize simple loops and replace the string concatenations inside with one StringBuilder instance and an append call inside the loop. 🤔

james
Автор

Great video! You mention JMH as the one and only framework for Performance measurements. I'am curious how would you test the performance of a Controller. Startup a for instance a Spring test context, autowire a controller instance?

boegi
Автор

What's with the low volume? Can you make it louder?

DavidDLee
Автор

more volume to the voice, less to the music please ...not easy with accent

jeancarloabreu
Автор

That’s how a Java programmer looks like

navyasm
Автор

The fake drinking at each cut must stop. Cringetopia

raulbache