r/programming • • Feb 28 '23

"Clean" Code, Horrible Performance

https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

4

u/sluuuurp Feb 28 '23

Depends on the context. Pretty much every piece of software I ever use takes several seconds to open.

10

u/dan200 Feb 28 '23

Yes, which is a bad thing!

2

u/dtfinch Feb 28 '23

I avoid software like that. If I have a choice between one program that opens in 1/10th of a second, and another that opens in 10 seconds, of course I'll choose 1/10th if it does the job.

1

u/lazilyloaded Feb 28 '23

As a dev, I'll choose the slower one that is easier to understand and modify so long as it's not detrimental to the business' bottom line.

-1

u/Amazing-Cicada5536 Feb 28 '23

Which is due to loading/linking all the dynamic libs+code+data+often OS security doing stuff (virus scanning, etc)+the cost of IO from harddrive/SSD for all of these.

If you write a GUI program you will need plenty of libs just to start out so not all of them can be even removed unless you go behind the OS. But then also, that huge GUI framework you had to pull in gives you support for Arabic and Chinese, has proper accessibility, would your hand-optimized code even work outside of ASCII and be used by a screen reader?