At http://people.ubuntu.com/~robertc/baz2.0/plugins/search/trunk

------------------------------------------------------------
revno: 59
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Robert Collins <[EMAIL PROTECTED]>
branch nick: trunk
timestamp: Wed 2008-12-03 06:08:44 +1100
message:
  Revert the group size shrinking, measurement shows it does not pay off well.
modified:
  index.py                       index.py-20080608055509-hnimeek7q8tctkqf-2
=== modified file 'index.py'
--- a/index.py  2008-11-16 23:01:04 +0000
+++ b/index.py  2008-12-02 19:08:44 +0000
@@ -337,7 +337,10 @@
         for pos, revid in enumerate(order):
             order_dict[revid] = pos
         # 5000 uses 1GB on a mysql tree.
-        group_size = 50
+        # Testing shows 1500 or so is a sweet spot for bzr, 2500 for python - 
ideally this wouldn't matter.
+        # Interesting only 2 times reduction in memory was observed every down
+        # at a group of 50, though it does slowly grow as it increases.
+        group_size = 2000
         groups = len(order) / group_size + 1
         for offset in range(groups):
             outer_bar.update("Indexing...", offset, groups)


-- 
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits

Reply via email to