News for hackers. Stuff that matters.
Re:Qt signal is ten times slower than a virtual function by thfuran on Thursday August 11, 2022 @01:27PM (#32429063)
One tenth as fast as a virtual function call is incredibly fast.
Re:Qt signal is ten times slower than a virtual function by jerf on Thursday August 11, 2022 @01:49PM (#32429376)
I like to bang on the drum that as a programmer, you need to understand the sheer number of orders of magnitude you're spanning more than the average programmer does. We so often deal in "10x slower" and "100x" slower that we can forget that it just doesn't matter if we're doing it even a mere 60 times a second. 10x slower on a process that takes 100ms is a problem. 10x slower on a process that takes 10ns requires a lot of looping to become a human-scale problem. There are things that can attain that level of looping, certainly, but it's not everything.

A good programmer ought to have read that sentence and instinctively observed that between 100ms and 10ns is a full seven orders of magnitude. For two numbers that at the human level may seem not terribly far away from "zero", there's a lot of space between them.