4 ms·
I can get it down to 1ms, so there's probably something wrong with my setup. (I just look for how the cursor moves; on the delayed one, I can discern the presen
by mrkgnao 9y ago
I can get it down to 1ms, so there's probably something wrong with my setup. (I just look for how the cursor moves; on the delayed one, I can discern the presence of the cursor on the next line for a split second.) Maybe monitor refresh rate, or the minimal resolution sleep can handle?
I'm using Alacritty, which is supposed to be really fast and everything!
- snvzz 9y agoLikely forking sleep takes time.
- yjftsjthsd-h 9y agoI would be extremely surprised if fork on a unix-like takes 1ms.
- snvzz 9y agoBe horrified, then. https://redislabs.com/blog/testing-fork-time-on-awsxen-infrastructure/ https://redislabs.com/blog/testing-fork-time-on-awsxen-infra... https://www.cs.indiana.edu/~adkulkar/papers/pspawn.pdf https://www.cs.indiana.edu/~adkulkar/papers/pspawn.pdf
- yjftsjthsd-h 9y agoBoth of those appear to indicate that forking is expensive when you need to copy unusually large amounts of memory (which makes sense). In this context, I would expect reasonable/small memory use and so fast forking.
- snvzz 9y agoFrom lmbench, http://www.bitmover.com/lmbench/lat_proc.8.html http://www.bitmover.com/lmbench/lat_proc.8.html Try it out.