[New-bugs-announce] [issue7593] Computed-goto patch

A.M. Kuchling report at bugs.python.org
Tue Dec 29 03:11:31 CET 2009


New submission from A.M. Kuchling <lists at amk.ca>:

Part of Unladen Swallow's roadmap is to use a threaded-interpreter
technique for the regular expression engine.  That sounded like an
interesting idea, so I went ahead and tried to implement it.

The current patch is attached.  To try it: run configure
--with-computed-gotos; apply the patch; and compile Python.

Still to do:

* Benchmarking, to determine if it's actually an improvement.

* Possibly integrate construction of the Modules/re_opcodes.h file into
the build process.  The current file is supplied; to rebuild it, run
"python Modules/makereopcodes.py > Modules/re_opcodes.h". (But it only
needs rebuilding if you add new regex opcodes, which is rarely done --
maybe it's sufficient to include a reminder to update it plus the script).

----------
components: Regular Expressions
messages: 96984
nosy: akuchling
severity: normal
status: open
title: Computed-goto patch
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7593>
_______________________________________


More information about the New-bugs-announce mailing list