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 lys.nikolaou
Recipients gvanrossum, lys.nikolaou, pablogsal
Date 2020-10-22.23:35:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
We can avoid having to go through all the invalid rules (which might be a significant performance boost, since these may call expensive rules like primary or others), if we run the parser two times.

On the first run, all the invalid rules are disabled and do not get expanded. If a parse failure occurs anywhere, then we run the parser a second time with all these rules enabled, in order to get the correct error message.

Some benchmarking by Pablo show a ~4% speedup in the stdlib benchmark and a ~10% in the xxl benchmark.
Date User Action Args
2020-10-22 23:35:43lys.nikolaousetrecipients: + lys.nikolaou, gvanrossum, pablogsal
2020-10-22 23:35:43lys.nikolaousetmessageid: <>
2020-10-22 23:35:43lys.nikolaoulinkissue42123 messages
2020-10-22 23:35:42lys.nikolaoucreate