Typing latency
Is there any way to reduce latency when typing things? It is not super slow, but noticeably slower than any other terminal that I use.
It feels like I'm typing on ssh terminal.
I don't see that latency here 😰
Neither do I. @indutny can you record a video with your mobile phone?
there are tools to objective latency measurement https://pavelfatin.com/typing-with-pleasure/ in russian http://tonsky.livejournal.com/306545.html
@iamstarkov 👍
Just wrote a small C application to measure latency. Turns out HyperTerm is actually faster than iTerm2. My bad!
Still would be cool if anyone else would be able to confirm it independently. I am not absolutely sure that my tool is correct.
(The tool is here)
Here is updated bench with the latency of typing in this comments form (just for fun):

Though, may be HyperTerm just became faster since last time? :) Have you done anything about performance?
Can you publish that C app here at GitHub? I'm interested in how it works 😊
@matheuss I already did in a comment above. Here it is just in case: https://gist.github.com/indutny/b530593a996bbbe8bfd51fc3f38c45f2
Oh, my bad 😅 Thanks!
Still would be cool if anyone else would be able to confirm it independently.
My observations (subjective) are that HyperTerm has noticeably less latency as I type than iTerm2 but in my case I know a lot of that is due to my zsh config which causes a lot of redrawing as I type.
Though, may be HyperTerm just became faster since last time? :) Have you done anything about performance?
There have been a couple of updates of electron in the HyperTerm package. The most recent one 1.3.0 updates Chrome to version 52 and node to 6.3.0. So there may be some performance improvements just from that.
There are certainly some actions at which HyperTerm can be slow. Typing in a new prompt is certainly not one of them (as shown above :P), but we have to consider a lot of different scenarios (like large screen redraws).
@freebroccolo
There have been a couple of updates of electron in the HyperTerm package. The most recent one 1.3.0 updates Chrome to version 52 and node to 6.3.0. So there may be some performance improvements just from that.
This must be it. I wish I had an old version to compare to.
Decided to publish my tool as a separate repo with build instructions (OS X only): https://github.com/indutny/latetyper
You can find the old versions here ^~^
Incredible @indutny
@matheuss just tested old versions, all of them seems to be faster than the latest iTerm2 :(
Good job HyperTerm, though!
Is there any way to reduce latency when typing things?
So it comes down to our measurement approach here. The approach. I chose here is "when can I see the letters after hitting a button on my keyboard". If we drop down into devtools and look at things per each frame we can get a better look at exactly when the new chars are shipped to the user.

^ We can see the majority of our frames are shipped to the user well under budget. Since the update loop for the screen is running inside of a requestAnimationFrame we are kinda self limiting how fast we are updating the screen (this is good, and bad in someways -- if we are trying to optimize for shipping the chars to screen as fast as possible)

I will be looking more into the costs associated with typing and some easy wins that we can get.
More on this later ✌️
Nice @samccone, This might be relevant: http://www.html5rocks.com/en/tutorials/speed/unnecessary-paints/