In the specific case below, of a concrete method implemented in a base
class (abstract or not) which has no overriding methods in any loaded
subclass, CHA will identify the fact that only a single possible target
exists and get the speed you seek regardless of encountered polymorphism
level at
se I'd
definitely recommend giving it a try.
On Mon, 30 Dec 2019, 18:09 Remi Forax, wrote:
>
>
> --
>
> *De: *"Brian Harris"
> *À: *"mechanical-sympathy"
> *Envoyé: *Lundi 30 Décembre 2019 17:13:38
> *Objet: *Re: does call site
> De: "Vitaly Davidovich"
> À: "mechanical-sympathy"
> Envoyé: Lundi 30 Décembre 2019 19:43:27
> Objet: Re: does call site polymorphism factor in method overrides?
> On Mon, Dec 30, 2019 at 1:09 PM Remi Forax < [ mailto:fo...@univ-mlv.fr |
> fo...@univ
On Mon, Dec 30, 2019 at 1:09 PM Remi Forax wrote:
>
>
> --
>
> *De: *"Brian Harris"
> *À: *"mechanical-sympathy"
> *Envoyé: *Lundi 30 Décembre 2019 17:13:38
> *Objet: *Re: does call site polymorphism factor in method ove
> De: "Brian Harris"
> À: "mechanical-sympathy"
> Envoyé: Lundi 30 Décembre 2019 17:13:38
> Objet: Re: does call site polymorphism factor in method overrides?
> Good to know Vitaly!
> So a poor example then. Better example is an abstract class with a me
Good to know Vitaly!
So a poor example then. Better example is an abstract class with a method
implementation that no subtypes override, yet multiple subtypes are found
to be the receiver of a particular call site. Should we expect a
monomorphic call site in that case.
On Sun, Dec 29, 2019 at
On Sun, Dec 29, 2019 at 10:22 AM Brian Harris
wrote:
> Hello!
>
> I was hoping to get one point of clarification about avoiding megamorphic
> call sites, after reading these excellent articles:
>
>
> http://www.insightfullogic.com/2014/May/12/fast-and-megamorphic-what-influences-method-invoca/
>