Message96984
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). |
|
Date |
User |
Action |
Args |
2009-12-29 02:11:31 | akuchling | set | recipients:
+ akuchling |
2009-12-29 02:11:31 | akuchling | set | messageid: <1262052691.46.0.772398622751.issue7593@psf.upfronthosting.co.za> |
2009-12-29 02:11:30 | akuchling | link | issue7593 messages |
2009-12-29 02:11:29 | akuchling | create | |
|