Commit 3f0e9c5
rsz: collapse buffer-size comparator to a make_tuple compare
Per review, express the (cap, id) lexicographic order as a single
std::make_tuple comparison. Each key is still evaluated once per cell, and
the explicit if-chain goes away.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent dadc151 commit 3f0e9c5
2 files changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
1506 | | - | |
1507 | | - | |
1508 | | - | |
| 1503 | + | |
| 1504 | + | |
1509 | 1505 | | |
1510 | 1506 | | |
1511 | 1507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
647 | 648 | | |
648 | 649 | | |
649 | 650 | | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
| 651 | + | |
| 652 | + | |
656 | 653 | | |
657 | 654 | | |
658 | 655 | | |
| |||
0 commit comments