Closed GoogleCodeExporter closed 9 years ago
Although it appears as the the package names clutter up the JSON, here are a
few points to keep in mind. First, the Strings in the JSON will not take up
heap memory within the JVM when read. Secondly, if you are using compression
in your HTTP transmissions (Content-Encoding: gzip, deflate), there will be
almost zero difference in the size of the JSON whether the package names are
reduced or not, as the package names will be replaced during gzip compression
by a small token anyway. Try it, try zipping a JSON document with and without
the package names listed and keyed at the top. The size of both will be very
similar once compressed. Finally, where in the JSON would you store them? It
would change the 'shape' of the object graph that was originally intended to be
placed into JSON format.
Original comment by jdereg@gmail.com
on 1 Jun 2013 at 9:05
Original issue reported on code.google.com by
KodyReco...@gmail.com
on 15 Feb 2013 at 3:58