Message379384
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:43 | lys.nikolaou | set | recipients:
+ lys.nikolaou, gvanrossum, pablogsal |
2020-10-22 23:35:43 | lys.nikolaou | set | messageid: <1603409743.28.0.787265357056.issue42123@roundup.psfhosted.org> |
2020-10-22 23:35:43 | lys.nikolaou | link | issue42123 messages |
2020-10-22 23:35:42 | lys.nikolaou | create | |
|