2 ms·
> Would allocating a 640-byte string initially really be the right tradeoff? It depends, presumably the generated JSON string would quickly be written down ins
by byroot 2y ago
> Would allocating a 640-byte string initially really be the right tradeoff?
It depends, presumably the generated JSON string would quickly be written down inside something else (e.g. sent as HTTP response or saved in database), so the object slot would be freed rather quickly.