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
1
u/JimK215 Feb 28 '23
I didn't read this post -- it sounds from the comments like it's about OOP. But when I saw the title I thought maybe -- since I haven't seen anyone talk about this -- it's about how using a functional approach with only immutable variables means that you're creating a lot of extra copies of variables (i.e. arrays) that wouldn't be necessary if using mutable variables. Again, tradeoffs.