Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
cafecortado7831288dYes, there is this sentence that dates back to 1995 and is called Wirth's law: "software gets slower faster than hardware gets faster".
https://en.m.wikipedia.org/wiki/... -
black-kite3071288dWhat I’ve noticed is that programmers don’t deliberately write resource hungry software.
Many write software that "seems" to work fine and fast…
and that is because they’re using machines with a lot of RAM and strong CPU.
But when that software is then used on a slower machine, performance issues arise and the engineers realize they’ve been duped by their machines (and their lack of competence to write optimized software) -
JsonBoa3014288dThere is also some pervasive addiction to black box algorithms.
Not every problem needs a GenAlg or a neural network or a branch-and-bound solver, but those are soooo easy to use that you will find those even when performance should be a larger concern.
Then there is plain old laziness, hurriedness and ignorance, where people make a brute force algorithm just because it is simple to understand.
I've once saw a kid compute a warehouse layout plan using 6 nested "for each" loops, at least half of all iterations were unnecessary. Probably many more.
Yet since he only had like 1h to write it, and I took longer than that just to explain to him that "algorithm" is not just another word for "code".
(we later used some nice greedy+dynamic method that sped things up 3700%)
Thus I would blame the industry, not devs, for the rush quick-to-develop-but-inefficient-in-production software.
When energy becomes expensive again this trend will revert. -
lorentz15183288dDevelopers compete to finish as much work as possible in a unit amount of time. The outcome of this race affects each dev's career progression individually, whereas performance is always a collective burden. To a lesser extent this is also the case with code quality. Any decent dev is perfectly capable of optimizing their code, they just never see any benefit to doing so.
-
MammaNeedHummus4416287dI'll take easy to change, readable code any day over perfomant ones 🪖😖
-
exerceo1194287d@cafecortado I left Wirth's Law out of the post to see if someone would bring this up. Thank you for bringing it up!
-
Demolishun35057287dIf I have an algo that seems it will be resource intensive for a large amount of items I will test it with a large amount of items. I like to see the upper bound. I will only do this if I could conceivably see a large amount of items though. What is the point of you only ever process 10 items max?
When I do test though I see how many orders of magnitude I can go. I have server that is used for process control. It could conceivably server 200 items. So I found the upper bound is 8500 on the hardware I was testing. The server was based upon a 3rd party protocol provider. The library just forced a disconnect at 8500 items per second being read. I am confident we will never see more than 200. But if we do need more we can go way higher. I will tell people the upper bound is 5000 though.
Seeing how big you can go is kinda fun sometimes.
Related Rants
-
phreakyphoenix8Want to take your open office plan to the next level? Double the efficiency of your space by having two employ...
-
ExtraWaffle17When the code is done, but you really want to improve it.
-
Jamoyjamie2Why do viruses make computers so slow...? Why can't their programmers implement them efficiently...? It's lik...
A developer might think "now that computers have more RAM and an abundantly strong CPU, I am free to create resource-hungry inefficient software!"
This sets a dangerous precedent.
Computers can only get faster if the software stays efficient while the processors get faster and the RAM increases.
If computers get more powerful but software also gets more bloated and less efficient, it defeats the performance benefit.
Also, software must be efficient to extend the battery time on portable devices.
Jody Bruchon video: https://youtube.com/watch/...
rant
efficiency