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 pitrou
Recipients akuchling, amaury.forgeotdarc, jimjjewett, pitrou, rsc, timehorse
Date 2008-04-26.10:08:05
SpamBayes Score 0.0151198
Marked as misclassified No
Message-id <1209204486.67.0.433804064566.issue2636@psf.upfronthosting.co.za>
In-reply-to
Content
I don't know anything about regexp implementation, but if you replace a
switch-case with a function lookup table, it isn't surprising that the
new version ends up slower. A local jump is always faster than a
function call, because of the setup overhead and stack manipulation the
latter involves.

So you might try to do the cleanup while keeping the switch-case
structure, if possible.
History
Date User Action Args
2008-04-26 10:08:07pitrousetspambayes_score: 0.0151198 -> 0.0151198
recipients: + pitrou, akuchling, jimjjewett, amaury.forgeotdarc, rsc, timehorse
2008-04-26 10:08:06pitrousetspambayes_score: 0.0151198 -> 0.0151198
messageid: <1209204486.67.0.433804064566.issue2636@psf.upfronthosting.co.za>
2008-04-26 10:08:05pitroulinkissue2636 messages
2008-04-26 10:08:05pitroucreate