Browse Source
On my Mac Mini, calling `poll()` on stdin takes around 10 us, and we are invoking it every 20 us or so. Reduce the frequency of polling by 16x when not actively receiving data, thereby reducing the fraction of time spent in `poll()` to a trivial amount.speedup-hacks
2 changed files with 12 additions and 1 deletions
Loading…
Reference in new issue