[Cuis-dev] unnecessary punctuation

Vanessa Freudenberg vanessa at codefrau.net
Wed Jun 12 16:03:37 PDT 2024


On Wed, Jun 12, 2024 at 15:32 Jaromir Matas <mail at jaromir.net> wrote:

>
> So if I understand correctly the #ifTrue:ifFalse message gets inlined only
> when used with block arguments, and it gets really sent when used without
> blocks; which means not only there's one more send but also that **both**
> 'Yes' and 'No' expressions get evaluated before sending #ifTrue:ifFalse
> (hence twice as slow?).
>

In this case evaluating both arguments is pretty cheap because they’re
simple string constants.

The slowdown comes mainly from actually having to do the sends of
“ifTrue:ifFalse:” and “value”.

Vanessa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240612/3a253ead/attachment.htm>


More information about the Cuis-dev mailing list