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 timehorse
Recipients akuchling, amaury.forgeotdarc, jimjjewett, pitrou, rsc, timehorse
Date 2008-04-26.11:51:10
SpamBayes Score 0.021851182
Marked as misclassified No
Message-id <1209210675.59.0.287735102195.issue2636@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you and Merci Antoine!

That is a good point.  It is clearly specific to the compiler whether a 
switch-case will be turned into a series of conditional branches or 
simply creating an internal jump table with lookup.  And it is true 
that most compilers, if I understand correctly, use the jump-table 
approach for any switch-case over 2 or 3 entries when the cases are 
tightly grouped and near 0.  That is probably why the original code 
worked so fast.  I'll see if I can combine the best of both 
approaches.  Thanks again!
History
Date User Action Args
2008-04-26 11:51:16timehorsesetspambayes_score: 0.0218512 -> 0.021851182
recipients: + timehorse, akuchling, jimjjewett, amaury.forgeotdarc, pitrou, rsc
2008-04-26 11:51:15timehorsesetspambayes_score: 0.0218512 -> 0.0218512
messageid: <1209210675.59.0.287735102195.issue2636@psf.upfronthosting.co.za>
2008-04-26 11:51:14timehorselinkissue2636 messages
2008-04-26 11:51:12timehorsecreate