[Vm-dev] how slower is called a named primitive over a numbered primitive?

Clément Bera bera.clement at gmail.com
Mon Jun 22 17:16:43 UTC 2015


Well it also depends if the primitive is generated by the JIT. If you
rewrite SmallInteger>>#+ from primitive 1 to a named primitive the overhead
will be more important than just the searching/loading/linking because the
JIT won't compile it to n-code anymore.

So make a test with a primitive not compiled by the JIT.

2015-06-22 18:35 GMT+02:00 David T. Lewis <lewis at mail.msen.com>:

>
> That sounds right to me too. But it would be a worthwhile experiment to
> set up a test to confirm it. Maybe take one or more methods that call
> numbered primitives, and recode them to call the primitives by name. Then
> measure and see if anything got slower.
>
> Dave
>
> >
> > On 22-06-2015, at 5:13 AM, Esteban Lorenzano <estebanlm at gmail.com>
> wrote:
> >
> >>
> >> Hi,
> >>
> >> Any idea how slower is? I mean, any measure/estimation/something around?
> >
> > After the initial searching/loading/linking it should be pretty much
> > identical. It’s just a jump to a pointed-at program location.
> >
> >
> > tim
> > --
> > tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> > Useful random insult:- Ready to check in at the HaHa Hilton.
> >
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150622/076c6cbe/attachment.htm


More information about the Vm-dev mailing list