MIN Up the size of cache
ENH Work around a bug in libxml2
ENH Use XPath expressions for speed

Also, it is shorter and easier to understand
ENH Commit every once in a while

Ugly, but very effective (at speeding up the parsing)