Ralf Schmitt added the comment:
./python Lib/timeit.py -n 1000000 -s "import
re;r=re.compile('a?a?a?a?a?aaaaa')" "r.match('aaaaa')" gives me for
Trunk:
1000000 loops, best of 3: 3.02 usec per loop
1000000 loops, best of 3: 2.99 usec per loop
1000000 loops, best of 3: 3.01 usec per loop
Patched:
1000000 loops, best of 3: 3.04 usec per loop
1000000 loops, best of 3: 3.04 usec per loop
1000000 loops, best of 3: 3.14 usec per loop
which would be ok, I guess.
(This is on a 64bit debian testing with gcc 4.2.3).
Can you test with the following:
if ((0 == (sigcount & 0xffffffff)) && PyErr_CheckSignals())
(i.e. the code will (nearly) not even call PyErr_CheckSignals).
I guess this is some c compiler optimization issue (seems like mine does
a better job at optimizing :)
____________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue846388>
____________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com