# Run a cone query's threads above normal priority on Windows · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/e4c8d932d0aba5841d48bcf7f690df069de13c8e)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: e4c8d932d0aba5841d48bcf7f690df069de13c8e

Requested commit: e4c8d932d0aba5841d48bcf7f690df069de13c8e

Commit: e4c8d932d0aba5841d48bcf7f690df069de13c8e

Tree: 9bd077a5e50ea15ba45967eb1e331316bfb86169

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Run a cone query's threads above normal priority on Windows

The caller waits for every chunk of a query, so a pool thread the
scheduler sets aside for a 15 ms time slice while holding one stalled the
drag. On a desktop busy with other work (12 busy processes on 16 cores) a
sweep of 16,000 Summit queries had p99 6.6 ms and a 163 ms worst case;
with the calling thread raised for the query and the workers raised for
good (they sleep when idle), p99 is 2.6 ms and the worst 5.5 ms. A quiet
machine is unchanged (p99 1.9 ms).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

```

## Parents

- [705d017370da0fe297237637fed68a12c651249a](https://git.cafe/dara/icarus/commit/705d017370da0fe297237637fed68a12c651249a?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/e4c8d932d0aba5841d48bcf7f690df069de13c8e?format=markdown)
