Author: Maciej Fijalkowski <[email protected]>
Branch: rdict-experiments-2
Changeset: r59926:ea720c684dd7
Date: 2013-01-10 20:29 +0200
http://bitbucket.org/pypy/pypy/changeset/ea720c684dd7/

Log:    a more promiscuous resizing strategy

diff --git a/pypy/rpython/lltypesystem/rdict.py 
b/pypy/rpython/lltypesystem/rdict.py
--- a/pypy/rpython/lltypesystem/rdict.py
+++ b/pypy/rpython/lltypesystem/rdict.py
@@ -418,7 +418,7 @@
         some = 4
     else:
         some = 7
-    new_lgt = lgt + some + (lgt >> 3)
+    new_lgt = lgt + some + (lgt >> 2)
     new_entries = lltype.typeOf(d).TO.entries.TO.allocate(new_lgt)
     rgc.ll_arraycopy(d.entries, new_entries, 0, 0, lgt)
     d.entries = new_entries
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to