Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit23fd6f7
committed
Use collections.deque to store animation cache data.
deques are exactly suited for the task at hand, and should be (here,marginally) more efficient than repeatedly slicing off the start of thelist.Also drop unneeded reference to old_frame_seq (the iterator alreadykeeps that data alive).1 parentbebb263 commit23fd6f7
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
| |||
1708 | 1709 |
| |
1709 | 1710 |
| |
1710 | 1711 |
| |
1711 |
| - | |
| 1712 | + | |
1712 | 1713 |
| |
1713 | 1714 |
| |
1714 | 1715 |
| |
1715 | 1716 |
| |
1716 | 1717 |
| |
1717 |
| - | |
| 1718 | + | |
1718 | 1719 |
| |
1719 | 1720 |
| |
1720 | 1721 |
| |
| |||
1727 | 1728 |
| |
1728 | 1729 |
| |
1729 | 1730 |
| |
1730 |
| - | |
1731 |
| - | |
| 1731 | + | |
1732 | 1732 |
| |
1733 | 1733 |
| |
1734 | 1734 |
| |
| |||
1779 | 1779 |
| |
1780 | 1780 |
| |
1781 | 1781 |
| |
1782 |
| - | |
1783 | 1782 |
| |
1784 | 1783 |
| |
1785 | 1784 |
| |
|
0 commit comments
Comments
(0)