Micro optimize list.pop · Issue #94603 · python/cpython (original) (raw)
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