3 ms·
Why take such a roundabout way of solving the problem? Why dump data into a log and then parse it back? Why don't they just have a separate structured log file/
by imtringued 8y ago
Why take such a roundabout way of solving the problem? Why dump data into a log and then parse it back? Why don't they just have a separate structured log file/database with only the information they need?
"It turns out serde, the Rust JSON library, is super fast. It tries very hard to not allocate, and it can deserialize the (uncompressed) 1GB of JSON into Rust structs in 2 seconds flat."
1GB/2 seconds = 500MB/s which happens to be the sequential performance of a SATA SSD.
Beyond decompressing gzipped data to then skip most of it there doesn't appear to be any performance problem at all as far as I can see.