Repository navigation
Commit 0ea6472
perf(array): share one probe across a chunked patch lookup's offset reads
`Patches::search_index_chunked` read three chunk offsets out of the same
array through `chunk_offset_at`, which builds an execution context and a
one-off probe per call — three of each per lookup, for three reads of one
small array.
Read them through a single `RepeatedArrayProbe` and a single context.
`chunk_offset_at` stays as the public single-read accessor.
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UPw4v7SA2A3Ab5t9zwGbRV1 parent be6c55e commit 0ea6472
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
490 | 491 | | |
491 | 492 | | |
492 | 493 | | |
| |||
502 | 503 | | |
503 | 504 | | |
504 | 505 | | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
505 | 518 | | |
506 | | - | |
| 519 | + | |
507 | 520 | | |
508 | | - | |
| 521 | + | |
509 | 522 | | |
510 | 523 | | |
511 | 524 | | |
| |||
515 | 528 | | |
516 | 529 | | |
517 | 530 | | |
518 | | - | |
| 531 | + | |
519 | 532 | | |
520 | 533 | | |
521 | 534 | | |
| |||
0 commit comments