|
|
|
|
|
by crazygringo
469 days ago
|
|
If you're streaming something row-based like a CSV, or a zipped CSV, then that's usually easy. But when you get to hierarchical data structures like JSON/protobuf there very often simply isn't a streaming library available. There's a library function to decode the whole thing into an object in memory, and that's all. Nothing prevents streaming in theory, it's just far more complicated to write that library. |
|
e.g. standard go json library https://pkg.go.dev/encoding/json#example-Decoder.Decode-Stre...