4 ms·
Alternatively, I would think that gzip does a good job of factoring out repeatedly embedded user objects.
by danneu 11y ago
Alternatively, I would think that gzip does a good job of factoring out repeatedly embedded user objects.
- kuschku 11y agoyes, 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.
- deleted 11y ago[deleted]
- spion 11y agoYes I agree that gzip will probably fix this single-handedly. The main cost here is very likely network transfer, so gzip will do great.
- joevandyk 11y agoDon't forget it takes time to parse large json blobs.
- sanderjd 11y agoAnd to serialize it from whatever the in-memory representation is.