u/plokhotnyuk

🚀 jsoniter-scala v2.38.17 is here! Up to 1.5x speedup for Int serialization on Oracle GraalVM!
▲ 37 r/scala

🚀 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, and BigDecimal values
  •  java.time.Period , java.time.Duration and other java.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!

u/plokhotnyuk — 2 days ago
▲ 57 r/scala

Hey everyone! 👋

Meet the new release of jsoniter-scala (v2.38.10), featuring significantly more efficient parsing for doubles, ints, and longs on JVMs and Scala Native!

You can see up to a 30% performance bump comparing to these throughput scores! 🚀

I'm going to rerun the benchmarks this week and will post the updated results, so stay tuned!

A similar JSON parsing improvement is also live in the new release of zio-blocks (v0.0.37)

Please give them a try! I always appreciate your feedback, GitHub stars, and tips via Sponsors 😉

Happy Scala coding! ✨

u/plokhotnyuk — 2 months ago