4 ms·
I don't see why it's a problem, caching solutions like Redis also store bytes. If you cache a JSON blob you don't have much choice.
by Thaxll 8y ago
I don't see why it's a problem, caching solutions like Redis also store bytes. If you cache a JSON blob you don't have much choice.
- kasey_junk 8y agoFor an in memory cache (ie one not going to disk/network) you have to unnecessarily serialize your in memory representation to bytes. This is very frequently the most expensive (computational) step in a system. If you are just going to send that stuff to nic/disk eventually anyway its perfectly fine (which is why something like Redis which is an out of memory cache can get away with it).