Repository navigation
Commit eb7fd15
Stop the subscriber stand-in idling half a second per test
Each test in this file starts a server and shuts it down, and `shutdown()` waits
for `serve_forever`'s poll interval to elapse before the loop notices it was
asked to stop. At the default half second, and with 27 tests, that was 13.5 s of
a 14.5 s file spent waiting for nothing -- enough to make it the slowest file in
the suite, and under `--dist loadfile` the slowest file is the wall clock.
A hundredth of a second instead: the file goes from 14.45 s to 0.98 s and out of
the top ten, and the whole suite from 26 s to 21 s.
Nothing about what is tested changes; the poll interval only decides how often an
idle serve loop looks up.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 95850a8 commit eb7fd15
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
| |||
0 commit comments