newformat format change

David Allouche david at allouche.net
Tue Oct 4 12:06:08 BST 2005


On Tue, 2005-10-04 at 13:12 +1000, Martin Pool wrote:
> I'm not sure it was such a good idea.  Reading and writing XML turns
> up as a hot spot in profiles, even though we're using a highly
> optimized xml library and the other code is not very optimized.  One
> part of the problem is that cElementTree needs to build everything
> into an in-memory structure which is then discarded; with a simple
> text form we can just convert directly.

Is there any specific reason why a SAX sort of API cannot be used to
save building the intermediate structure?

It's not like you are reading out-in-the-wild xml with namespace and all
the other wild shit. Expat should do the job pretty well, and I heard
it's really really fast.

-- 
                                                            -- ddaa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051004/d041a38b/attachment.pgp 


More information about the bazaar mailing list