Re: [jackson-user] Gzip JsonFactory/ObjectMapper?

2018-11-27 Thread Tatu Saloranta
On Sat, Nov 24, 2018 at 12:10 PM wrote: > Quite strangely, the JDK's GZip is winning vs these fancy compression > algorithms: > > Json size: 2727kb > Json time: 26.426ms > > Smile size: 1043kb > Smile time: 20.366ms > > Compressed Smile size: 914kb > Compressed Smile time: 20.678ms > > GZip

Re: [jackson-user] Gzip JsonFactory/ObjectMapper?

2018-11-27 Thread Tatu Saloranta
On Sat, Nov 24, 2018 at 2:17 PM wrote: > Now I'm curious of smile combined with this LZ4 implementation > https://github.com/lz4/lz4-java > The time is pretty close and the compression is decent, what do you think > I need to do to be able to decorate the *SmileFactory*? > In theory, should

Re: [jackson-user] Gzip JsonFactory/ObjectMapper?

2018-11-25 Thread oxyg3n8
Now this is even better that what I would expected, using the LZ4 implementation https://github.com/lz4/lz4-java and double pass I get the following result: Json size: 2727kb Json time: 26.22ms Smile size: 1043kb Smile time: 19.78ms Compressed Smile size: 914kb Compressed Smile time: 19.88ms

Re: [jackson-user] Gzip JsonFactory/ObjectMapper?

2018-11-24 Thread oxyg3n8
Now I'm curious of smile combined with this LZ4 implementation https://github.com/lz4/lz4-java The time is pretty close and the compression is decent, what do you think I need to do to be able to decorate the *SmileFactory*? Json size: 2727kb Json time: 27.43ms Smile size: 1043kb Smile time:

Re: [jackson-user] Gzip JsonFactory/ObjectMapper?

2018-11-24 Thread oxyg3n8
Quite strangely, the JDK's GZip is winning vs these fancy compression algorithms: Json size: 2727kb Json time: 26.426ms Smile size: 1043kb Smile time: 20.366ms Compressed Smile size: 914kb Compressed Smile time: 20.678ms GZip size: 216kb GZip time: 53.393ms And for a reasonable price to pay,

Re: [jackson-user] Gzip JsonFactory/ObjectMapper?

2018-11-24 Thread oxyg3n8
I'm thinking that because of the usage of this scenario I only need to implement one method for each decorator like in the following example? static { final SmileFactory smileFactory=new SmileFactory().disable(ENCODE_BINARY_AS_7BIT); smileFactory.setInputDecorator(new

Re: [jackson-user] Gzip JsonFactory/ObjectMapper?

2018-11-23 Thread Tatu Saloranta
On Fri, Nov 23, 2018 at 8:17 PM wrote: > > Hi, > > I have been scratching my head for the last hour or two looking for a Gzip > JsonFactory or any other type of factory that is able to compress huge Json > objects, > I know I'm going to sacrifice some performance but for this particular >

[jackson-user] Gzip JsonFactory/ObjectMapper?

2018-11-23 Thread oxyg3n8
Hi, I have been scratching my head for the last hour or two looking for a *Gzip JsonFactory* or any other type of factory that is able to compress huge Json objects, I know I'm going to sacrifice some performance but for this particular scenario I need a JsonFactory *-or ObjectMapper-* that is