Hacker News new | ask | show | jobs
by lostmsu 1653 days ago
This is true for languages where most objects are not garbage-collected. In Java (modern days) this would add a level of indirection.
1 comments

Which may be in certain cases trivially optimizable. Eg. an object available only inside a class can have its method calls inlined into the containing class’s methods.

(But I’m no JVM developer (unfortunately) so I’m not sure whether this exact optimization exists or not)