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 pablogsal
Recipients pablogsal, petdance
Date 2019-12-29.05:19:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1577596751.26.0.481902073431.issue39150@roundup.psfhosted.org>
In-reply-to
Content
> PyToken_OneChar in Parser/token.c is autogenerated.  I suspect it may be faster and smaller if it were a lookup into a static table of ops rather than a switch statement.  Check to see if it is.

I suspect that it will be marginally faster (because it won't need to do bound checks to go to the default case) but under PGO it will make almost no difference.

You can try to see if there is any significant improvement using the pyperformance suite (https://pyperformance.readthedocs.io/) with and without your change (with PGO/LTO activated).
History
Date User Action Args
2019-12-29 05:19:11pablogsalsetrecipients: + pablogsal, petdance
2019-12-29 05:19:11pablogsalsetmessageid: <1577596751.26.0.481902073431.issue39150@roundup.psfhosted.org>
2019-12-29 05:19:11pablogsallinkissue39150 messages
2019-12-29 05:19:11pablogsalcreate