[MERGE] add performance three

John A Meinel john at arbash-meinel.com
Mon May 22 13:25:17 BST 2006


Robert Collins wrote:
> This makes add faster again by using the inventory objects and by
> tweaking the elementree xml serialiser to be faster in the inner loop.
> 
> Rob
> 

...

> +
> +
> +# before in bench_add_kernel_like
> +# 10831        10824   9384.4890   1847.5270   elementtree.ElementTree:662(_write)
> +#+10824            0   9295.0140   1761.0460   +elementtree.ElementTree:662(_write)
> +#+32471            0   4585.8950   1331.2060   +elementtree.ElementTree:812(_escape_attrib)
> +#after switching to text.replace rather than string.replace.
> +# 10831        10824   7486.1120   1832.2340   elementtree.ElementTree:662(_write)
> +#+10824            0   7397.3120   1745.6300   +elementtree.ElementTree:662(_write)
> +#+32471            0   2762.3760   1300.3990   +bzrlib.xml_serializer:85(_escape_attrib)
> +

Is this comment correct? From what I can see, you are switching to
re.sub() rather than string.replace(). Not switching to text.replace().

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060522/1f9f4863/attachment.pgp 


More information about the bazaar mailing list