*it really would though
*it really would though
It was what made me fall in love with Ruby: There are so many spaces where the time is spent elsewhere and the time spent doing things slowly in Ruby (though much faster than it used to be) doesn't matter.
Like a window manager.
I've even made performance tradeoffs that makes it much slower: On every adjustment of the layout, I iterate over every single window the WM knows about to filter a list of the wm's on this desktop, that are visible, and compare that to a serialized list of every single window that exists in the layout tree.
Because it's fast enough, and it saves bothering to keep proper track of state, and makes some of the code simpler.
Knowing when you can afford to pick the slow options on purpose is powerful.
Knowing when you can't afford to, is also important.
Hard place: crowd of Wayland pitchforks thundering in the distance
Effort analysis: <negative beeping>
Itch: scratch?
Me: annoyed twitching
I imagine the vast optimisations that came in PHP7, likely at Meta and Wordpress's behest, would be to thank for that.
1) Startup time had to be fast because of how it worked in its most common use case (yes, yes, FPM, but still) which tends to encourage or require making everything fast.
2) Writing C modules for PHP is relatively easy and it has a culture of anything halfway important being in C, going back to the early days of the language. The answer for how to be really fast with real-world workloads in almost every scripting language is basically “get out of it and into C ASAP” but PHP’s culture embraces that more than most.