Message238765
When appending fails, the deque is left in changed state. I would do it in different way. First append new item (can fail), and then make circular shift (never fail). This also should be faster (up to 2 times). Most code can be shared between rotate() and circular shift operation. |
|
| Date |
User |
Action |
Args |
| 2015-03-21 05:26:49 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger |
| 2015-03-21 05:26:49 | serhiy.storchaka | set | messageid: <[email protected]> |
| 2015-03-21 05:26:49 | serhiy.storchaka | link | issue23704 messages |
| 2015-03-21 05:26:49 | serhiy.storchaka | create | |
|