Message261280
There is more optimal approach.
Find not just an index in a deque, but a block and an index in a block. After that move left or right part of a deque one position right or left. __delitem__() could be 2 times faster, remove() could be faster too. Helpers proposed in issue17394 allow to do this easily. |
|
Date |
User |
Action |
Args |
2016-03-07 06:39:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger |
2016-03-07 06:39:16 | serhiy.storchaka | set | messageid: <1457332756.22.0.77619939931.issue25246@psf.upfronthosting.co.za> |
2016-03-07 06:39:16 | serhiy.storchaka | link | issue25246 messages |
2016-03-07 06:39:15 | serhiy.storchaka | create | |
|