I have an application written in ruby (which works in JRuby VM). By profiling it, I realized that it spends a lot (almost almost all) of its time converting some hashes into JSON.
These hashes have character keys, values for other similar hashes, arrays, strings, and numbers.
Is there a serialization method suitable for such input and usually works faster than JSON? It would be preferable if he had a Java or JRuby-compatible gem.
I am currently using jruby-jsongem, which is the fastest implementation JSONin JRuby (as I was told), so the transition will most likely be to a different serialization method, and not just to another library.
Any help is appreciated! Thank.
source
share