Rev 1942: (robertc, jam) Custom xml serializer saves a lot of time when serializing inventories in /home/pqm/archives/thelove/bzr/+trunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Thu Aug 17 15:18:31 BST 2006
------------------------------------------------------------
revno: 1942
revision-id: pqm at pqm.ubuntu.com-20060817141830-383cad75e9090732
parent: pqm at pqm.ubuntu.com-20060817141110-a47f710fd1700892
parent: john at arbash-meinel.com-20060817140227-ece11563ff82c8dd
committer: Canonical.com Patch Queue Manager<pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2006-08-17 15:18:30 +0100
message:
(robertc,jam) Custom xml serializer saves a lot of time when serializing inventories
added:
bzrlib/benchmarks/bench_xml.py bench_xml.py-20060816202544-ty0p415bb7om5gzd-1
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/benchmarks/__init__.py __init__.py-20060516064526-eb0d37c78e86065d
bzrlib/benchmarks/tree_creator/kernel_like.py kernel_like.py-20060815024128-b16a7pn542u6b13k-1
bzrlib/cache_utf8.py cache_utf8.py-20060810004311-x4cph46la06h9azm-1
bzrlib/tests/test_xml.py test_xml.py-20050905091053-80b45588931a9b35
bzrlib/xml5.py xml5.py-20050907032657-aac8f960815b66b1
------------------------------------------------------------
merged: john at arbash-meinel.com-20060817140227-ece11563ff82c8dd
parent: john at arbash-meinel.com-20060817140059-9ac765cafd871dcd
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Thu 2006-08-17 09:02:27 -0500
message:
NEWS
------------------------------------------------------------
merged: john at arbash-meinel.com-20060817140059-9ac765cafd871dcd
parent: john at arbash-meinel.com-20060817135901-eb9ca8e90751874c
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Thu 2006-08-17 09:00:59 -0500
message:
Document why we aren't caching file ids at the moment
------------------------------------------------------------
merged: john at arbash-meinel.com-20060817135901-eb9ca8e90751874c
parent: john at arbash-meinel.com-20060816233803-9c192384559be0fa
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Thu 2006-08-17 08:59:01 -0500
message:
Removed unused _pack_inventory and _pack_entry functions, PEP8 the rest of xml5.py
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816233803-9c192384559be0fa
parent: john at arbash-meinel.com-20060816224210-ae24143ba1c2db50
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 18:38:03 -0500
message:
Caching revision_ids costs us a little (512 vs 475), but caching file-ids costs us a lot (780 vs 512), so disabling caching of file ids for now
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816224210-ae24143ba1c2db50
parent: john at arbash-meinel.com-20060816223721-d51dc4195ffd808c
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 17:42:10 -0500
message:
Add a benchmark for read inventory speed
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816223721-d51dc4195ffd808c
parent: john at arbash-meinel.com-20060816223521-73357694d4b7df0b
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 17:37:21 -0500
message:
Add a cache for a kernel-like inventory
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816223521-73357694d4b7df0b
parent: john at arbash-meinel.com-20060816221317-284692a0314af203
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 17:35:21 -0500
message:
One field was incorrect, need text_sha1 not text_size
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816221317-284692a0314af203
parent: john at arbash-meinel.com-20060816220958-508daf70b8fd07be
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 17:13:17 -0500
message:
Remove unnecessary benchmark
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816220958-508daf70b8fd07be
parent: john at arbash-meinel.com-20060816220938-56c1be7eca420dff
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 17:09:58 -0500
message:
Correct function names (write, not serialize)
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816220938-56c1be7eca420dff
parent: john at arbash-meinel.com-20060816220526-9e9e34ad909f252d
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 17:09:38 -0500
message:
Switch back to using Entity serializer, since performance is equivalent, yet still compatible
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816220526-9e9e34ad909f252d
parent: john at arbash-meinel.com-20060816220019-541cb90093258ac3
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 17:05:26 -0500
message:
Document why we use try/except rather than if None
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816220019-541cb90093258ac3
parent: john at arbash-meinel.com-20060816214855-0241888fa586e232
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 17:00:19 -0500
message:
Using real utf8 and cache_utf8 has similar performance, 272ms, and 363ms
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816214855-0241888fa586e232
parent: john at arbash-meinel.com-20060816214415-9a64892b53ead826
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 16:48:55 -0500
message:
Caching the trailing " and directly appending, down another 50ms, 275ms cached, 354ms uncached
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816214415-9a64892b53ead826
parent: john at arbash-meinel.com-20060816213823-66ae578056053a0b
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 16:44:15 -0500
message:
Passing around the append function rather than the list shaves off another 10%, down to 400ms
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816213823-66ae578056053a0b
parent: john at arbash-meinel.com-20060816213149-bcbef53cfff6b110
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 16:38:23 -0500
message:
Comment why we do caching the way we do
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816213149-bcbef53cfff6b110
parent: john at arbash-meinel.com-20060816212852-15c8a2d1fe44971d
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 16:31:49 -0500
message:
With a full cache the time is down to 381 ms
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816212852-15c8a2d1fe44971d
parent: john at arbash-meinel.com-20060816211942-00cff30d95d6d1c2
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 16:28:52 -0500
message:
Cache the entity escaping cuts us down to 450ms
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816211942-00cff30d95d6d1c2
parent: john at arbash-meinel.com-20060816205523-b8df51cb552b5a7e
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 16:19:42 -0500
message:
rewrite escaper to use xml numerical entities, rather than using encode('utf8')
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816205523-b8df51cb552b5a7e
parent: john at arbash-meinel.com-20060816205127-30f3c965b98f1ddf
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 15:55:23 -0500
message:
[merge] robert's custom XML serializer, and cleanup for benchmarks and iter_entries() differences
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816205127-30f3c965b98f1ddf
parent: john at arbash-meinel.com-20060816204343-2485bd147bd7e253
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 15:51:27 -0500
message:
Make benchmark include both writing to a real file, and to a string
------------------------------------------------------------
merged: john at arbash-meinel.com-20060816204343-2485bd147bd7e253
parent: pqm at pqm.ubuntu.com-20060816165353-bc26ccbe32f89d60
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: xml_writer
timestamp: Wed 2006-08-16 15:43:43 -0500
message:
Write a benchmark for the XML serializer
More information about the bazaar-commits
mailing list