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 <1603409743.28.0.787265357056.issue42123@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-10-22 23:35:43lys.nikolaousetrecipients: + lys.nikolaou, gvanrossum, pablogsal
2020-10-22 23:35:43lys.nikolaousetmessageid: <1603409743.28.0.787265357056.issue42123@roundup.psfhosted.org>
2020-10-22 23:35:43lys.nikolaoulinkissue42123 messages
2020-10-22 23:35:42lys.nikolaoucreate