Repository navigation
Commit 5fe1e3c
committed
accelerate setitem with slice
When using setitem with a slice and an item that is smaller than the
slice, we need to remove items. Until now, this was done with pop, which
actually incurred a memory move of the tail of the list for every item
being removed. Now that we can mass delete items in the list with `del`
and slices, we used that functionality instead.1 parent 3cb7008 commit 5fe1e3c
1 file changed
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 680 | + | |
| 681 | + | |
690 | 682 | | |
691 | 683 | | |
692 | 684 | | |
| |||
0 commit comments