Better HN
topnewbestaskshowjobs
Log inSign up

Somojojojo

4 karma · joined Mar 16, 2012 (14y ago) · 4 submissions

Submissions

comment 10y ago · link · parent

While gzip compression is obviously better than this, which is more of an optimization, you can certainly pair this with gzip to get better results; albeit not much:

Sample JSON Object, using this technique:

>>> Length (Original): 25565

>>> Length (Original, gzip): 3966

>>> Length (Using 90deg): 15626

>>> Length (using 90deg, gzip): 3633

So while the optimization gives you almost 10k bytes in size reduction, the gzipped result is only a 300 byte reduction in this example.

comment 10y ago · link · parent

Well, at the end of the article he shows this technique used along with gzip. He however does not show a comparison of the original vs his 90deg compression with gzip; so the difference there may be negligible.

comment 10y ago · link · parent

This looks a lot like the first compression step in JSON HPack: https://github.com/WebReflection/json.hpack/wiki

comment 14y ago · link · parent

Because it's a software update? I don't know what qualifies to be posted on HN, but people post software releases and updates here all the time.