[XML-SIG] Optimising/strategies for DOM/XSL lookup-parsing
Fred L. Drake
Fred L. Drake, Jr." <email@example.com
Mon, 22 Mar 1999 17:36:58 -0500 (EST)
Kevin Russell writes:
> BUT: unpickling the file took *considerably* longer than just
> reading in and parsing the XML in the first place. Unless
> cpickle is a helluva lot faster, there won't be much saved time.
cPickle is a helluva lot faster. Some tests have reported as much
as 1000 times faster. Using "binary" pickles should help a lot in
either case, since the DOM data structures are heavily biased toward
string data, which is a lot faster in the binary format.
The best combo is:
* cPickle if it's available (otherwise just use pickle), and
* binary format, in either case.
Fred L. Drake, Jr. <firstname.lastname@example.org>
Corporation for National Research Initiatives