Message238765
| Author |
serhiy.storchaka |
| Recipients |
rhettinger, serhiy.storchaka |
| Date |
2015年03月21日.05:26:49 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1426915609.67.0.153035902714.issue23704@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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: <1426915609.67.0.153035902714.issue23704@psf.upfronthosting.co.za> |
| 2015年03月21日 05:26:49 | serhiy.storchaka | link | issue23704 messages |
| 2015年03月21日 05:26:49 | serhiy.storchaka | create |
|