by still_grokking · 4y ago · 0 comments
---
Does this actually even matter today when every click or key-press triggers dozens of fat network request going around the globe on top of a maximally inefficient protocol?
Or to summarize what we see here: We've build layers of madness. Now we have just to deal with the fallout…
The result is in no way surprising given we haven't refactored our systems for over 50 years and just put new things on top.
So that is about 0.175ms.
I know people might think this over the top, but AFAIK this is far cheaper than say to work around latency within the software system. Next we need to work on Display Latency and Display Connection Latency.
[1] https://www.razer.com/gaming-keyboards/razer-huntsman-v2
For completely imperceptible computing, display refresh must be dealt within 50 ms, roughly. Input must be sampled, all relevant computations for the current rendered display must be computed, or in easily accessed storage, and all updates to the display propagated to the framebuffer. Sensitive humans can notice as little as roughly 50 ms of lag or jitter.
This means for a program dealing with highly interactive graphics that are linked to an input device, the core event loop must execute in less than 50 ms or so. Even with current blazing-fast machines, this is a tough challenge for anything complex. If this deadline is not met, potentially perceptible lag in rendering will occur. In a 3D rendered scene, the graphics may perceptibly hang or tear for a couple frames. This is perceptible by a human, though with sustained suspension of disbelief, we can mostly ignore it, much as we can ignore the various visual artifacts in 24 fps cinema.
It just adds up to the overall latency.
Also real latency of web-pages is measured in seconds these days. People are happy when they're able to serve a request in under 0.2 sec.
For example, I had a support call with Azure asking them why the latency between Azure App Service and Azure SQL was as high as 13ms, and they asked me if my target user base was "high frequency traders" or somesuch.
They just could not believe that I was expecting sub-1ms latencies as a normal thing for a database response.
I think I'm just learning this the hard way, given the down-votes of the initial comment. :-)
Maybe people really don't see the issue with adding layers after layers of stuff, and that we've reached, no, surpassed even, some tragicomic point? Computers are thousands of times faster, yet the end-user experience becomes more sluggish with every year passing. We have an issue, I would say. And it's actually not even funny any more.
Managed to fix the problem and restore performance by suggesting we disable the MySQL query cache which was slowing down the system with more cores.
And this was nothing to do with banking or high frequency anything. Just code that did lots of small queries to fill a screen full of data to support persons.