Commit b425372
Bisect the scheduler queue in place instead of slicing it (#191)
Splicing a watcher into a flushing queue sliced the tail of
_queue_indices just to bisect it, copying O(n) entries on every
mid-flush enqueue and then correcting the returned index by hand.
Passing the lo bound to bisect searches the same range in place.
Claude-Session: https://claude.ai/code/session_01UyALuqgF1ZZ3Lj88FzwGVc
Co-authored-by: Claude <noreply@anthropic.com>1 parent f113501 commit b425372
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
| 209 | + | |
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
| |||
0 commit comments