Re:“Clean” Code, Horrible Performance
by mmarq on Tuesday February 28, 2023 @04:17PM
(#34974984)
His classes are doing a single multiplication, of course dynamic dispatch would have a significant cost in this scenario.
[ Parent
| on HN ]
Never look at the dispatch of a big company’s Java code base then. It’s dynamic dispatch 400 layers deep for a single network call or file op or small amount of math. Sure those are more expensive operations, but the dynamic dispatch has continually out scaled the problem.