Commit e497e81
authored
feat(patching): give the read-ahead up before refusing a sweep
The block a sweep holds is mostly what the chain must hold to run at all: the
source window it pulls, the rows it lands, the buffers its widest stage
allocates. The read-ahead queue is the one part the sizing CHOSE rather than
met, and what it buys is wall clock -- half a second of a 6.7 s run, by
_sweep_depth's own measurement. A sweep about to refuse has no clock to buy.
So it stops buying it. Three resident source regions become one and the search
runs once more; only if that does not fit either does it refuse, now naming both
figures so a reader knows which one to clear. On a chain whose stage buffers
dominate the band is narrow, 1.31x to 1.34x on the tiling fixture; on a
pointwise one it is 2.5x. Inside the band the alternative was not a slower run
but no run.
_sweep_depth had to learn to go down before it goes up: a tile found without the
queue, swept with one, would hold what the sizing was never told about -- the
budget's promise lost to a default nobody revisited. And _keeps_the_block now
asks the search rather than _sweep_tile, which falls back: a depth that cannot
afford the block would otherwise come back holding it, and every depth would
look affordable.
The refusal test's own budget stopped refusing, which is the feature: half of
one row's queued price is bought by the serial retry. It is now set under the
serial price, and asserts both figures are named.1 parent 787fb60 commit e497e81
2 files changed
Lines changed: 93 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3209 | 3209 | | |
3210 | 3210 | | |
3211 | 3211 | | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
3212 | 3217 | | |
3213 | 3218 | | |
3214 | 3219 | | |
3215 | 3220 | | |
3216 | 3221 | | |
3217 | 3222 | | |
3218 | 3223 | | |
3219 | | - | |
3220 | | - | |
3221 | | - | |
3222 | | - | |
3223 | | - | |
3224 | | - | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
3225 | 3233 | | |
3226 | 3234 | | |
3227 | 3235 | | |
| |||
3521 | 3529 | | |
3522 | 3530 | | |
3523 | 3531 | | |
3524 | | - | |
3525 | 3532 | | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
| 3537 | + | |
| 3538 | + | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
| 3567 | + | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
3526 | 3572 | | |
3527 | | - | |
3528 | | - | |
3529 | | - | |
3530 | | - | |
| 3573 | + | |
| 3574 | + | |
| 3575 | + | |
| 3576 | + | |
3531 | 3577 | | |
3532 | 3578 | | |
3533 | | - | |
3534 | | - | |
3535 | | - | |
3536 | | - | |
3537 | | - | |
3538 | | - | |
3539 | | - | |
3540 | | - | |
3541 | | - | |
| 3579 | + | |
3542 | 3580 | | |
3543 | 3581 | | |
3544 | 3582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
256 | 284 | | |
257 | 285 | | |
258 | 286 | | |
259 | 287 | | |
260 | 288 | | |
261 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
262 | 293 | | |
263 | | - | |
| 294 | + | |
264 | 295 | | |
| 296 | + | |
| 297 | + | |
265 | 298 | | |
266 | 299 | | |
267 | 300 | | |
| |||
0 commit comments