[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] [PATCH 1/2] kernel: Make >>#new/>>#new: go through
From: |
Paolo Bonzini |
Subject: |
Re: [Help-smalltalk] [PATCH 1/2] kernel: Make >>#new/>>#new: go through >>#initialize |
Date: |
Tue, 29 Jul 2014 18:48:20 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Il 26/07/2014 18:20, Holger Hans Peter Freyther ha scritto:
> On Sat, Jul 26, 2014 at 02:18:12PM +0200, Holger Hans Peter Freyther wrote:
>
>> Would now call initialize twice. I will squash the two patches and
>> write a "NEWS" items.
>
> I have a macro-benchmark of [] vs. [Object new] vs. [Object basicNew]
> and we pay a lot for the extra message send. This is besides the code
> in _gst_send_message_internal already checking for the "self" routine.
Yes, this is why I was reluctant to do this.
> I could cheat and add another "cache" for Behavior>>#new or make it
> another kind of primitive?
Making it another primitive would lower that cost. Sounds like a good idea.
Paolo