A question about #become: (was: Re: [squeak-dev] [ANN] Squeak 5)

Eliot Miranda eliot.miranda at gmail.com
Wed Aug 12 18:58:52 UTC 2015


On Wed, Aug 12, 2015 at 11:57 AM, tim Rowledge <tim at rowledge.org> wrote:

>
> On 12-08-2015, at 11:20 AM, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>
> >
> >
> > On Wed, Aug 12, 2015 at 11:09 AM, Levente Uzonyi <leves at elte.hu> wrote:
> > I wonder if you're creating two forwarders in case of #become:, with
> objects of different size, or just one forwarder for the larger object
> while copying the smaller object over the larger one (when possible).
> >
> > Right now it's the simplest thing that could possibly work.  I think
> this is a great idea though.  It would potentially eliminate the
> post-become stack scan if all objects can be becomed either by exchanging
> contents or (in one-way) shortening.  Alas I don't have time for this right
> now.  Any volunteers interested?
>
> Huh; I thought you had done that ages ago. I recall suggesting it really
> early in your spur work and could have sworn you did it right then.
>

I think I did exchange of contents when the objects are of the same size,
at your prompting, but I definitely know I /didn't/ do shortening in
one-way as per Levente's suggestion.

_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150812/81b02d9f/attachment.htm


More information about the Squeak-dev mailing list