[Vm-dev] Re: SmallInetger as methods was not ready yet....now maybe?

Mariano Martinez Peck marianopeck at gmail.com
Mon Dec 6 09:23:17 UTC 2010


On Sat, Dec 4, 2010 at 6:39 PM, Andreas Raab <andreas.raab at gmx.de> wrote:

>
> On 12/3/2010 9:12 PM, Igor Stasenko wrote:
>
>> don't need a lookup? how?
>> you still have a method dictionaries, and keys there are not ordered
>> nor sequential ( yes, you can make selectors in a single class
>> to be sequential , like 1 , 2 ,3 ,4 , then you don't need to do a
>> lookup for a single given class, but for the rest of classes which
>> obviously contain different set of selectors, you won't be able to do
>> that).
>>
>
> Sorry, "no lookup" referred to the initial comment of wanting somehow to
> map selectors to some number (which I presumed was an index into some
> database to load the unloaded compiled method). Of course, method lookup is
> still required.
>
>
Yes, you don't need lookup, but you need the methodMap... I mean, I can also
store in the proxy instance its class+selector where it is installed. Or use
a global map, or whatever. And yes, I avoid the lookup, but I spend memory
on that. Then I can not store anything at all, and search it.


> Cheers,
>  - Andreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20101206/29098098/attachment.htm


More information about the Vm-dev mailing list