[pypy-svn] r14592 - pypy/branch/pypy-translation-snapshot/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Tue Jul 12 23:14:13 CEST 2005
Author: arigo
Date: Tue Jul 12 23:14:11 2005
New Revision: 14592
Modified:
pypy/branch/pypy-translation-snapshot/objspace/std/listsort.py
Log:
Merge of rev 14590 from the trunk.
Modified: pypy/branch/pypy-translation-snapshot/objspace/std/listsort.py
==============================================================================
--- pypy/branch/pypy-translation-snapshot/objspace/std/listsort.py (original)
+++ pypy/branch/pypy-translation-snapshot/objspace/std/listsort.py Tue Jul 12 23:14:11 2005
@@ -185,6 +185,13 @@
assert lastofs == ofs # so a[ofs-1] < key <= a[ofs]
return ofs
+ # hint for the annotator: the argument 'rightmost' is always passed in as
+ # a constant (either True or False), so we can specialize the function for
+ # the two cases. (This is actually needed for technical reasons: the
+ # variable 'lower' must contain a known method, which is the case in each
+ # specialized version but not in the unspecialized one.)
+ gallop._annspecialcase_ = "specialize:arg4"
+
# ____________________________________________________________
# When we get into galloping mode, we stay there until both runs win less
More information about the Pypy-commit
mailing list