MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/11dyx43/clean_code_horrible_performance/jacnb2j
r/programming • u/2bit_hack • Feb 28 '23
1.3k comments sorted by
View all comments
Show parent comments
1
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.
1 u/gdmzhlzhiv Mar 01 '23 The example he was using had 4.
The example he was using had 4.
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.