3 ms·
> it would be nice if they’d explain why. Just to fill in the picture here: it's because the built-in parser has a very good chance of being faster than anythi
by zamalek 9y ago
> it would be nice if they’d explain why.
Just to fill in the picture here: it's because the built-in parser has a very good chance of being faster than anything you could write[1]. In addition, it's code that you don't own and don't have to maintain.
[1]: with exception to https://news.ycombinator.com/item?id=16413917 https://news.ycombinator.com/item?id=16413917
- mikeash 9y agoYou’d use an existing streaming parser, not write your own.
- aaronblohowiak 9y agosupport for un-marshaling json into objects in a streaming way is spotty / inconvenient. it should be easier than it is.