Which python xml parser is the most efficient for large files? or How do you handle XML parsing in Py

22 Replies, 1736 Views

lxml is the best python xml parser for performance, but if you’re lazy like me, `xmltodict` is a nice middle ground.

For huge files, pre-process with `sax`—it’s event-based, so super memory-efficient. Steeper learning curve, though.

Messages In This Thread



Users browsing this thread: 1 Guest(s)