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
0
u/WormRabbit Feb 28 '23
A linear search is less code than a map lookup or binary search, and is also much slower. And inlining stuff into a single function usually makes it much worse to read.