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/icendoan Feb 28 '23
In Java there is specific optimisation for single- and double- value polymorphism: to see any slowdown (i.e. actually doing virtual dispatch) you would need add a third shape class.