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 akuchling
Recipients akuchling
Date 2009-12-29.02:11:29
SpamBayes Score 6.809314e-05
Marked as misclassified No
Message-id <1262052691.46.0.772398622751.issue7593@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2009-12-29 02:11:31akuchlingsetrecipients: + akuchling
2009-12-29 02:11:31akuchlingsetmessageid: <1262052691.46.0.772398622751.issue7593@psf.upfronthosting.co.za>
2009-12-29 02:11:30akuchlinglinkissue7593 messages
2009-12-29 02:11:29akuchlingcreate