This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author facundobatista
Recipients effbot, facundobatista, joshhoyt, loewis, schmir
Date 2008-01-04.18:06:30
SpamBayes Score 0.00086062204
Marked as misclassified No
Message-id <1199469990.88.0.228553002192.issue846388@psf.upfronthosting.co.za>
In-reply-to
Content
Couldn't apply cleanly the patch, as it appears to be a diff in other
format.

Anyway, applied it by hand, and now I attach the correct svn diff.

The test cases run ok with this change, and the problem is solved.

Regarding the delay introduced, I tested it with:

  $ ./python timeit.py -s "import re;r=re.compile('a?a?a?a?a?aaaaa')"
"r.match('aaaaa')"

Trunk:
  100000 loops, best of 3: 5.4 usec per loop
  100000 loops, best of 3: 5.32 usec per loop
  100000 loops, best of 3: 5.41 usec per loop

Patch applied:
  100000 loops, best of 3: 7.28 usec per loop
  100000 loops, best of 3: 6.79 usec per loop
  100000 loops, best of 3: 7.00 usec per loop

I don't like that. Anyway, I do NOT trust for timing the system where
I'm making the timing, so you may get different results.

Suggestions?
History
Date User Action Args
2008-01-04 18:06:31facundobatistasetspambayes_score: 0.000860622 -> 0.00086062204
recipients: + facundobatista, loewis, effbot, joshhoyt, schmir
2008-01-04 18:06:30facundobatistasetspambayes_score: 0.000860622 -> 0.000860622
messageid: <1199469990.88.0.228553002192.issue846388@psf.upfronthosting.co.za>
2008-01-04 18:06:30facundobatistalinkissue846388 messages
2008-01-04 18:06:30facundobatistacreate