14 ms·
This is nothing new. Back in the late 2000s, I did this to deal with a huge quantity of XML been sent over the wire to desktop PCs. The original version needed
by OnlyMortal 5y ago
This is nothing new. Back in the late 2000s, I did this to deal with a huge quantity of XML been sent over the wire to desktop PCs. The original version needed 20GB of RAM. I changed it just to pick up the tags needed and parsed the stream as it came. Time was massively reduced too.
I see the same mistakes done with JSON nowadays.
Basically, if you don’t need the DOM in its entirety, don’t parse it all.