Message265773
Proposed patch changes the complexity of deque indexing from linear to constant. All other operations preserves its amortized cost.
New deque implementation use two-level array instead of linked list. Since free space is reserved at both side, new blocks can be added at both sides for constant time. Memory consumption is almost the same. |
|
Date |
User |
Action |
Args |
2016-05-17 19:41:41 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger |
2016-05-17 19:41:40 | serhiy.storchaka | set | messageid: <1463514100.28.0.824610562849.issue27047@psf.upfronthosting.co.za> |
2016-05-17 19:41:40 | serhiy.storchaka | link | issue27047 messages |
2016-05-17 19:41:40 | serhiy.storchaka | create | |
|