cpython
cpython copied to clipboard
Micro optimize list.pop
Feature or enhancement
list.pop currently calls list_ass_slice which contains some extra caculations not relevant for list.pop. With a direct implementation the cases for small lists is improved.
Pitch
The gain for the improved cases is in the 10% to 30% range.
Previous discussion
This came out of tests performed related to #94508
- PR: gh-94604