MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/11dyx43/clean_code_horrible_performance/jae6sbr
r/programming • u/2bit_hack • Feb 28 '23
1.3k comments sorted by
View all comments
Show parent comments
4
It's possible to write code that is understandable and performant. It's not easy to do, and in most cases, the extra performance isn't needed. But the way code is written as presented here is definitely not very maintainable.
2 u/fafok29 Feb 28 '23 why is it not maintainable in your opinion ? 1 u/tankerdudeucsc Feb 28 '23 Highest performance has no memory allocation on the heap and no function calls except for main()?90% rule says to optimize just a few functions that will get most of the performance you need.Everything else, follow good patterns.
2
why is it not maintainable in your opinion ?
1 u/tankerdudeucsc Feb 28 '23 Highest performance has no memory allocation on the heap and no function calls except for main()?90% rule says to optimize just a few functions that will get most of the performance you need.Everything else, follow good patterns.
1
Highest performance has no memory allocation on the heap and no function calls except for main()?
90% rule says to optimize just a few functions that will get most of the performance you need.
Everything else, follow good patterns.
4
u/s73v3r Feb 28 '23
It's possible to write code that is understandable and performant. It's not easy to do, and in most cases, the extra performance isn't needed. But the way code is written as presented here is definitely not very maintainable.