Hello,
We recently switched a lot of our jackson data to smile format. I did
some benchmarks on some of our data and we saw good deserialization speedup
of around 30% when using smile rather than text. We are mostly concerned
with deserialization as we do many more of those ops.
However when I actually enabled it for all our data, we noticed things
actually running slower. It seems one of our objects in particular got
about 10% slower. I captured a java flight recording and it appears the
hotspot is in ByteQuadsCanonicalizer._verifySharing (the Arrays.copyOf
operations). I also enabled the afterburner module -- not sure if that
would have any adverse impacts.
We also have a time of day when one of our objects gets larger. We did see
slower performance for this object during that time, which was expected.
But we also noticed a slow down during that time in other objects that
don't change size. Is there any shared resource that could explain that?
Is it expected that smile could be slower for some data structures? I had
assumed it would just generally be faster.
I think our configuration is pretty straightforward, we do have some custom
serializers but otherwise it's just:
SmileFactoryBuilder factoryBuilder = new SmileFactoryBuilder(new
SmileFactory())
.disable(JsonFactory.Feature.CANONICALIZE_FIELD_NAMES)
.disable(JsonFactory.Feature.INTERN_FIELD_NAMES)
.disable(StreamWriteFeature.AUTO_CLOSE_TARGET);
ObjectMapper m = new ObjectMapper(factoryBuilder.build());
m.configure(MapperFeature.USE_GETTERS_AS_SETTERS, false);
m.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
m.configure(SerializationFeature.CLOSE_CLOSEABLE, false);
m.setSerializationInclusion(JsonInclude.Include.NON_NULL);
m.registerModule(new AfterburnerModule());
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jackson-user/a3433732-9b29-4399-99ab-fd099da4f2d4n%40googlegroups.com.