Boosting InputStream::transferTo Performance | The Two Minutes Tuesday 025 | Java Inside

As I explained in a recent video (https://youtu.be/qgDfZgreN40), InputStream::transferTo() is the most comfortable way to tell java we want to transfer the remaining content of one stream into another stream, but that it apparently is the slowest one, too! The reason is scary, as you will see in this inside look under OpenJDK’s hood. But rescue is on the way! I have filed a PR with #OpenJDK to make it lightning fast: https://github.com/openjdk/jdk/pull/4263.

If you like this video, please give it a thumbs up, share it, subscribe to my channel, or become my patreon https://www.patreon.com/mkarg. Thanks! πŸ™‚

CU!

About Markus Karg

Java Guru with +30 years of experience in professional software development. I travelled the whole world of IT, starting from Sinclair's great ZX Spectrum 48K, Commodore's 4040, over S/370, PCs since legendary XT, CP/M, VM/ESA, DOS, Windows (remember 3.1?), OS/2 WARP, Linux to Android and iOS... and still coding is my passion, and Java is my favourite drug!
This entry was posted in Java, Open Source, Programming, The Two Minutes Tuesday and tagged , , , , , , . Bookmark the permalink.