by serial_dev · 2y ago · 0 comments
In this scenario, writing a new, or bundling someone else's json library can significantly improve things.
The devices only needed a sub-range of the XML so I used an XML parser to ignore everything until I got the tag needed then read until the end tag arrived.
This avoided a DOM and the huge amount of memory needed to hold that. It was also significantly faster.
Even sending data that the mobile app doesn’t need raises flags.