Re:Latency matters
by mjevans on Sunday August 20, 2017 @04:05PM
(#15060011)
This guy must have not noticed after adding a thousand papercuts to each terminal prompt. Premature optimization is one thing, but sometimes it is a good idea to compare against a baseline.
[ Parent
| on HN ]
It's not like I'm the only one adding papercuts to the stack. ;)
From the top of my head, each keypress goes at least through the keyboard driver, X11, possibly the window manager, the terminal, the line discipline, the terminal again, font rendering, compositing, and then display. It only takes one of these steps to mess up for latency to go up.
The latency was in constructing the 'prompt' string (via his custom program). The actual input latency in the stack is both 'constant' and rather difficult for an end user to directly affect. Thankfully the millions of human-hours put in to the hardware and software stack have made that quite efficient.
> The actual input latency in the stack is both 'constant' and rather difficult for an end user to directly affect.
The article starts with a link to https://danluu.com/term-latency/, which disproves both assertions.