<div dir="ltr">Else in the sistaV1 bytecode set there is the #jumpIfNotInstanceOfOrPop: bytecode, which is heavily optimized for class test. I would be compiled much faster than obj class == Class ifTrue: [] because it compares class tags and not class pointers. The problem is that this bytecode relies on classes as literals, not as literal variables, which may not be convenient in your case.<div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 27, 2016 at 11:04 PM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><div dir="auto"><div>H Denis,</div><div><br></div><div>    there are bytecodes for #== and #class that do no lookup.  Look for Smalltalk specialSelectors and you&#39;ll figure it out.  There are 32 special selectors.  The first is #+ and has bytecode 176 in the default bytecode set.<br><br><span style="background-color:rgba(255,255,255,0)">_,,,^..^,,,_ (phone)</span></div><div><br>On May 27, 2016, at 12:54 PM, Denis Kudriashov &lt;<a href="mailto:dionisiydk@gmail.com" target="_blank">dionisiydk@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><span></span></div></blockquote><blockquote type="cite"><div><div dir="ltr">Hi.<div><br></div><div>I want to play with idea to make #ifNil: optimization in the way that for particular receiver it will be always real message send.</div><div>I want to compile it with extra check like </div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>receiver class = MySpecialClass ifTrue: ifNilBlock.</div></blockquote><div><br></div>I want to measure performance impact. <div>I know in the past #class was compiled as special bytecode. Is it available now? And what bytecode I could use?</div><div><br></div><div>Best regards,</div><div>Denis</div></div>
</div></blockquote></div><br></blockquote></div><br></div>