Skip to content

Instantly share code, notes, and snippets.

@netanel246
Last active February 24, 2021 14:52
Show Gist options
  • Save netanel246/f85777761ebfc0a5ddef54170ea62f11 to your computer and use it in GitHub Desktop.
Save netanel246/f85777761ebfc0a5ddef54170ea62f11 to your computer and use it in GitHub Desktop.
Compare WKB and ShapeFile Serde Performance
==== test size of class org.locationtech.jts.index.quadtree.Quadtree====
WKB: SHAPE:
original size : 1726447 1723815
with serde kryo size : 588667 497407
percent : 0.34097021223356405 0.2885501054347479
==== test size of class org.locationtech.jts.index.strtree.STRtree====
WKB: SHAPE:
original size : 1521545 1723815
with serde kryo size : 610013 497407
percent : 0.40091683124718624 0.2885501054347479
==== test Serialize time of class org.locationtech.jts.index.quadtree.Quadtree====
WKB: SHAPE:
originalserialize time : 4.543 3.892
original deserialize time : 1.438 1.727
with serde kryo serialize time : 0.2 0.067
with serde kryo deserialize time : 0.201 0.089
==== test Serialize time of class org.locationtech.jts.index.strtree.STRtree====
WKB: SHAPE:
originalserialize time : 5.533 6.251
original deserialize time : 2.994 2.243
with serde kryo serialize time : 0.577 0.119
with serde kryo deserialize time : 0.706 0.45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment