Commit b8be385
committed
Simplify maxdict implementation.
... by relying on dicts maintaining insertion order (which is what was
previously tracked separately in `_killkeys`).
Note that both the original and new implementations actually evict keys
by *insertion* order, not as LRU.1 parent 91cb8a8 commit b8be385
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| 587 | + | |
587 | 588 | | |
588 | | - | |
| 589 | + | |
589 | 590 | | |
590 | | - | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
599 | 596 | | |
600 | 597 | | |
601 | 598 | | |
| |||
0 commit comments