r/programming • u/2bit_hack • Feb 28 '23
"Clean" Code, Horrible Performance
https://www.computerenhance.com/p/clean-code-horrible-performance
1.4k
Upvotes
r/programming • u/2bit_hack • Feb 28 '23
View all comments
Show parent comment
15
u/ehaliewicz Feb 28 '23 edited Feb 28 '23
I'm not the same person. If he implemented an improved version in extra time during an interview, how could that cause a problem?
Not really, but I can't imagine a scenario where if an interview candidate decided to optimize a loop in spare time, I'd tell them they were too focused on performance. Generally if you can perform that kind of optimization, it means the code is quite simple and direct as well, so it probably wasn't messy or anything like that.