
🚀 jsoniter-scala v2.38.17 is here! Up to 1.5x speedup for Int serialization on Oracle GraalVM!
Hey r/scala! 👋
We’ve just released v2.38.17 of jsoniter-scala, and it brings some serious performance upgrades under the hood.
This week, I've successfully integrated the full version of James Anhalt's amazing algorithm for serializing integers into text format. The results are fantastic - if you're running on Oracle GraalVM, you can expect up to a 1.5x speedup for Int and up to a 1.25x speedup for Long serialization!
The best part? Because of how the library leverages JSON serialization, this optimization cascades down to a bunch of other data types as well. You'll see performance bumps when serializing:
- small
BigInt, andBigDecimalvalues -
java.time.Period,java.time.Durationand otherjava.time.*values with nanos
Update your dependencies, let it fly, and let all us know how it impacts your applications.
Benchmark results incoming! 📊 I've just kicked off the massive benchmark suite across 10 different JVMs and 4 browsers. I'll publish the final, detailed results next week here as usually:
What's next? 👀 I'm looking into how to apply the same technique to make Float and Doubleserialization blazing fast.
Support the project! ⚡ Running these massive benchmarks is keeping my CPU running for several days and nights, and the air-conditioning needed to cool my room down is definitely spiking my electricity bill! 😅 ❄️ If you enjoy these speedups, consider supporting me and my over-worked equipment with a tip via GitHub Sponsors.
Happy Scala coding!