3 ms·
> Though for the same dataset, XML will be slower to parse. For performance's sake use JSON. Loading a huge JSON file is almost certainly slower than using a S
by _pmf_ 13y ago
> Though for the same dataset, XML will be slower to parse. For performance's sake use JSON.
Loading a huge JSON file is almost certainly slower than using a SAX parser for a huge XML file. Maybe there are SAX like approaches for JSON, too.
- icebraining 13y agoYes, it's called "streaming". Like in XML, you can also used a mixed approach. See e.g. https://sites.google.com/site/gson/streaming https://sites.google.com/site/gson/streaming