News for hackers. Stuff that matters.
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.
Re:“Clean” Code, Horrible Performance by Olreich on Wednesday March 01, 2023 @03:52AM (#34980196)
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.
Re:“Clean” Code, Horrible Performance by mmarq on Wednesday March 01, 2023 @05:41AM (#34980841)
But the company that uses Java quite often is writing the umpteenth line-of-business application, where dynamic dispatch is not going to cause a massive overhead