5 minutes of coding yields a 6%+ boost to Linux I/O performance
phoronix.com
phoronix.com
I remember contracting for IBM in the 90s and we had a huge performance boost due to caching and, like the anecdote in this post, there was a slight chance of something going out of date. The IBM guys said "no thanks, IBM prefers bullet proof over fast".
Bulletproof typically means rigid in design. Trading one bag of worms for another.
"You didn't pay me $1k to press three buttons; you paid me $1k for knowing which three buttons to press."
EDIT: oh, i see a version of this was already posted in another comment :)
When I asked my Dad how long something took, he'd say something like "2 years and 20 minutes." 2 years to get around to it. Mom took his habit into the real world and published an ad for the company with a cut out "Round Tuit" and copy, "How many times have you heard someone say, 'I'll do that when I get a round tuit.' Now that you have your very own Round Tuit, there's no limit to what you can accomplish!"
Round Tuits were cut out and appeared on walls all over town.
* The oil was still <5k mi old. People are funny.
The plumber replied: “Sure. I’m charging you $1 for the washer and $99 for knowing where to fit it.”
https://www.reddit.com/r/todayilearned/comments/2b4n7a/til_h...
Typically you don't need granularity as fine as you think you do. Reading time at the finest granularity available is going to kill your throughput/latency no matter what because you are probing the hardware, so make sure you need that very fine granularity.
IME, most (99.999%) of the case you need the time, you can get by with coarse granularity. I worked on realtime systems to control a jig in a factory, using embedded 486-class processors, with hard-realtime kernel patches, and even then I had no need to use the non-coarse timers when recording events for observability.
In any case, here's the relative costs of the different timers: https://www.lelanthran.com/chap5/content.html
And getting the time without a full syscall is hardly unique to Windows. On Linux, that's almost the entire point of the vDSO.
Then they brought in a man who had been fixing ships since he was young. He carried a large bag of tools with him and when he arrived immediately went to work. He inspected the engine very carefully, top to bottom.
Two of the ship’s owners were there watching this man, hoping he would know what to do. After looking things over, the old man reached into his bag and pulled out a small hammer. He gently tapped something. Instantly, the engine lurched into life. He carefully put his hammer away and the engine was fixed!!!
A week later, the owners received an invoice from the old man for $10,000.
What?! the owners exclaimed. “He hardly did anything..!!!”.
So they wrote to the man; “Please send us an itemised invoice.”
The man sent an invoice that read:
Tapping with a hammer………………….. $2.00
Knowing where to tap…………………….. $9,998.00
Effort is important but experience and knowing where to direct that effort makes all the difference.
dirty C&P from: https://medium.com/@oceanbcreative/the-ship-repair-man-story...
https://en.m.wikipedia.org/wiki/Charles_Proteus_Steinmetz
https://www.smithsonianmag.com/history/charles-proteus-stein...
Seems irrelevant. From the sound of it this was something that would always have been easy for him to do. He just never got to do it until now.
Point being- it's pretty unlikely that something bouncing around the back of someone's head for years would have taken 5 minutes to do right away, just as it's unlikely that it would have taken 6 years if they'd started when they first had the thought. I suspect there's been some amount of thinking, and potentially that other work was subtly influenced by this thought so that finally doing the task was "easy".
That being said, on average, it would take 5 minutes if you started doing it the 5th - 10th time you thought about it. Definitely doesn't need 6 years indeed.
So it seems we very often drag our feet when it comes to thoughts that are already well-baked / perfectly fermented.