neal at gafter.com
Fri Nov 20 15:52:08 PST 2009
On Fri, Nov 20, 2009 at 3:30 PM, Rémi Forax <forax at univ-mlv.fr> wrote:
> There is a real problem of performance with extension methods
> (at least with Hotspot).
> Extension methods create megamorphic call sites
> and Hotspot is not able to inline them.
Extension methods are most simply formulated are static methods (as in C#),
and are therefore not polymorphic at runtime at all. They can even be
inlined trivially. Such a formulation enables existing methods (such as
those in Collections and Arrays) to be retrofitted as extension methods as
Perhaps you have another technique in mind for extension methods?
More information about the coin-dev