[pypy-svn] r80000 - pypy/trunk/pypy/rpython/lltypesystem

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Dec 12 14:24:54 CET 2010


Author: cfbolz
Date: Sun Dec 12 14:24:51 2010
New Revision: 80000

Modified:
   pypy/trunk/pypy/rpython/lltypesystem/rstr.py
Log:
use full width of a signed even on 64 bit machines to make string finding
probably a bit faster there


Modified: pypy/trunk/pypy/rpython/lltypesystem/rstr.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/rstr.py	(original)
+++ pypy/trunk/pypy/rpython/lltypesystem/rstr.py	Sun Dec 12 14:24:51 2010
@@ -242,10 +242,7 @@
 FAST_RFIND = 2
 
 
-# XXX: This should be set to the number of bits in a long.  Having a lower
-# value here doesn't break anything, it just decreases the accuracy of the
-# bloom filter heuristic, which results in a worse runtime (but correct results)
-BLOOM_WIDTH = 32
+from pypy.rlib.rarithmetic import LONG_BIT as BLOOM_WIDTH
 
 
 def bloom_add(mask, c):



More information about the Pypy-commit mailing list