Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed as not planned
Description
Feature or enhancement
Inlistobject.c
there is anoptimization to check whether an index is valid (e.g.0 <= index < N
) using a single comparison. The same optimization is not used in other files such astupleobject.c
.
By replacing index checks with a single macro that includes the optimization we have consistency in the code and have the optimized check for all index checks.
Previous discussion
Idea first mentioned atfaster-cpython/ideas#498