Faster Charset Encoding


CharsetDecoders got several times faster in JDK 17, leaving CharsetEncoder behind. After a few false starts and some help from the community I found a trick to speed up CharsetEncoders similarly. This may or may not speed up your apps in the future. This is a technical read, but also a story about the process of failing and trying again, with no graphs and lots of distracting links to source code. Sorry. But there will be cake…

More at https://cl4es.github.io/2021/10/17/Faster-Charset-Encoding.html