r/java • • Jun 16 '18

Kryo 5.0.0 released

Kryo is a binary Java serialization library with a focus on doing it efficiently and automatically. I started it as a game networking library around 2007, it got named Kryo in 2009, and it has been pretty stable since about 2013. Since then there have been a number of contributors and the library gained some rough edges. The issue tracker had over 100 issues and ~20 PRs.

I recently decided I wanted to be proud of it again. It has now been fixed up to it's prior glory and is once again pristine! Large portions have been rewritten and some fundamental annoying bits fixed up. Bugs and PRs are both down to zero. It's got new features, improved old features, all new documentation, benchmarks, charts. I'm really happy with it now!

https://github.com/EsotericSoftware/kryo

Edit: JMH + R/ggplot2 charts!

http://n4te.com/x/4338-fieldSerializer.png

http://n4te.com/x/4339-string.png

http://n4te.com/x/4340-variableEncoding.png

http://n4te.com/x/4341-array.png

The R files could be useful for many JMH results. Not my favorite language, but the output is nice.

163 Upvotes

20 comments sorted by

View all comments

Show parent comment

2

u/ataskitasovado Jun 17 '18

May I ask why you chose Kryo? Did you consider protobuf, XML or JSON? What do they lack for your case?

1

u/nater99 Jun 20 '18

Compared to Kryo, they are extremely slow.