3 ms·
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
by mjevans 9y ago
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.
- majewsky 9y agoIt'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.
- mjevans 9y agoThe 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.
- majewsky 9y ago> 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/ https://danluu.com/term-latency/, which disproves both assertions.