News for hackers. Stuff that matters.
Re:Page Weight Matters (2012) by danneu on Thursday October 15, 2015 @03:28PM (#10395373)
Alternatively, I would think that gzip does a good job of factoring out repeatedly embedded user objects.
Re:Page Weight Matters (2012) by spion on Thursday October 15, 2015 @03:56PM (#10395547)
Yes I agree that gzip will probably fix this single-handedly. The main cost here is very likely network transfer, so gzip will do great.
Re:Page Weight Matters (2012) by joevandyk on Thursday October 15, 2015 @05:33PM (#10396158)
Don't forget it takes time to parse large json blobs.
Re:Page Weight Matters (2012) by sanderjd on Friday October 16, 2015 @01:56PM (#10400963)
And to serialize it from whatever the in-memory representation is.
Re:Page Weight Matters (2012) by kuschku on Thursday October 15, 2015 @03:42PM (#10395467)
yes, obviously – gzip even does that explicitly, replacing repeated text with references.

But it still takes more power for your server to go through gzip every time. And it will take more RAM on the client to store those objects.