<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m just trying to understand the cost difference between prim 120 and #primitiveCalloutWithArgs so it should be easy to set up a test :)<div class="">but… judging #primitiveDoNamedPrimitiveWithArgs… I suppose something like Athens will need a numbered primitive, in order to keep it performant…</div><div class=""><br class=""></div><div class="">but well, after I have numbers I will send a proposition (if needed), to remap #primitiveCalloutWithArgs into a number… :P</div><div class=""><br class=""></div><div class="">Esteban</div><div class=""><br class=""></div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 22 Jun 2015, at 19:16, Clément Bera &lt;<a href="mailto:bera.clement@gmail.com" class="">bera.clement@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Well it also depends if the primitive is generated by the JIT. If you rewrite SmallInteger&gt;&gt;#+ from primitive 1 to a named primitive the overhead will be more important than just the&nbsp;<span style="font-size:12.8000001907349px" class="">searching/loading/linking because the JIT won't compile it to n-code anymore.</span><div class=""><span style="font-size:12.8000001907349px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8000001907349px" class="">So make a test with a primitive not compiled by the JIT.</span></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-06-22 18:35 GMT+02:00 David T. Lewis <span dir="ltr" class="">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank" class="">lewis@mail.msen.com</a>&gt;</span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="">
That sounds right to me too. But it would be a worthwhile experiment to<br class="">
set up a test to confirm it. Maybe take one or more methods that call<br class="">
numbered primitives, and recode them to call the primitives by name. Then<br class="">
measure and see if anything got slower.<br class="">
<br class="">
Dave<br class="">
<div class="HOEnZb"><div class="h5"><br class="">
&gt;<br class="">
&gt; On 22-06-2015, at 5:13 AM, Esteban Lorenzano &lt;<a href="mailto:estebanlm@gmail.com" class="">estebanlm@gmail.com</a>&gt; wrote:<br class="">
&gt;<br class="">
&gt;&gt;<br class="">
&gt;&gt; Hi,<br class="">
&gt;&gt;<br class="">
&gt;&gt; Any idea how slower is? I mean, any measure/estimation/something around?<br class="">
&gt;<br class="">
&gt; After the initial searching/loading/linking it should be pretty much<br class="">
&gt; identical. It’s just a jump to a pointed-at program location.<br class="">
&gt;<br class="">
&gt;<br class="">
&gt; tim<br class="">
&gt; --<br class="">
&gt; tim Rowledge; <a href="mailto:tim@rowledge.org" class="">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank" class="">http://www.rowledge.org/tim</a><br class="">
&gt; Useful random insult:- Ready to check in at the HaHa Hilton.<br class="">
&gt;<br class="">
&gt;<br class="">
<br class="">
<br class="">
</div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></body></html>