[b]"What's the best Python XML parser for handling large files efficiently?"[/b] or [b]"How do you choose the righ

22 Replies, 1150 Views

Wow, thanks for all the suggestions! I tried `lxml.iterparse()` with `clear()` and it’s *way* better—no more RAM explosions.

Still kinda slow though... anyone got tips on optimizing the loop?

Also, `xmltodict` looks interesting for smaller chunks—might give that a shot next.

Appreciate the help!

Messages In This Thread



Users browsing this thread: 1 Guest(s)