At http://bzr.arbash-meinel.com/branches/bzr/1.11/xml_cache
------------------------------------------------------------
revno: 3890
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: John Arbash Meinel <[EMAIL PROTECTED]>
branch nick: xml_cache
timestamp: Wed 2008-12-10 12:50:59 -0600
message:
Add detailed timings on the last 100 mysql revisions.
Revert to the 'safe' copy-everything code.
=== modified file 'bzrlib/xml8.py'
--- a/bzrlib/xml8.py 2008-12-10 18:29:35 +0000
+++ b/bzrlib/xml8.py 2008-12-10 18:50:59 +0000
@@ -365,12 +365,16 @@
file_id = elt_get('file_id')
revision = elt_get('revision')
# Check and see if we have already unpacked this exact entry
- # Some timings for "repo.revision_trees(last_100_bzr_revs)"
- # unmodified 4.1s
+ # Some timings for "repo.revision_trees(last_100_revs)"
+ # bzr mysql
+ # unmodified 4.1s 40.8s
# using lru 3.5s
- # using fifo 2.83s
+ # using fifo 2.83s 29.1s
# lru._cache 2.8s
- # dict 2.75s
+ # dict 2.75s 26.8s
+ # inv.add 2.5s 26.0s
+ # no_copy 2.00s 20.5s
+ # no_c,dict 1.95s 18.0s
# Note that a cache of 10k nodes is more than sufficient to hold all of
# the inventory for the last 100 revs.
# With inventory.add() optimizations, and not copying file entries,
@@ -383,10 +387,10 @@
pass
else:
# Only copying directory entries drops us 2.85s => 2.35s
- if cached_ie.kind == 'directory':
- return cached_ie.copy()
- return cached_ie
- # return cached_ie.copy()
+ # if cached_ie.kind == 'directory':
+ # return cached_ie.copy()
+ # return cached_ie
+ return cached_ie.copy()
kind = elt.tag
if not InventoryEntry.versionable_kind(kind):
--
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits