Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
flatbuffers-java-poc
Discontinued Proof of Concept for an alternative Java implementation for FlatBuffers
I've spent a fair bit of time on exploring performance optimizations (for fun rather than necessity). Most use case should see a 1.5-3x speedup in encoding and a 3-4x speedup in decoding speed compared to the latest Protobuf-Java release (v3.21.12 on JDK 17). The speedup comes partly from reducing allocations, and partly from various optimizations like a fall-through switch case and a better memory layout. The JSON encoding speed is competitive with other generated implementations, but the decoding is comparatively barebones because I've never had a use case for it.
I actually did try to get involved with FlatBuffers very early on (2014) and use it instead of Protobuf. I wrote the initial Java benchmarks and worked on a proof of concept for an object API.
I actually did try to get involved with FlatBuffers very early on (2014) and use it instead of Protobuf. I wrote the initial Java benchmarks and worked on a proof of concept for an object API.
It would be interesting to create a new java benchmark with your implementation.