[Cuis-dev] unnecessary punctuation

Vanessa Freudenberg vanessa at codefrau.net
Wed Jun 12 15:33:26 PDT 2024


On Wed, Jun 12, 2024 at 14:33 Mark Volkmann <r.mark.volkmann at gmail.com>
wrote:

> On Wed, Jun 12, 2024 at 4:28 PM Vanessa Freudenberg <vanessa at codefrau.net>
> wrote:
>
>
>> It's also twice as slow to leave out the block brackets because it
>> prevents compiler optimizations and forces actual sends to be made. You can
>> verify that by benchmarking, and understand it by looking at the bytecodes
>> generated and running a message tally.
>>
>
> I believe you, but I'm curious why it's faster to send the `value:`
> message to a block than to some other kind of object. Are you saying that
> the optimizations make it so the `value:` message is not actually sent to a
> block in this case and code in the block gets inlined?
>

Yes. That’s why I suggested a few tools for you to investigate.

Vanessa

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


More information about the Cuis-dev mailing list