[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] the test test - a more detailed analysis of image c
From: |
Paolo Bonzini |
Subject: |
Re: [Help-smalltalk] the test test - a more detailed analysis of image contents |
Date: |
Tue, 21 Jul 2009 19:50:23 +0200 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
> >> IDEAS: I would probably replace the children
> OrderedCollection with a tail+next circular linked list
> representation. At the beginning tail := nil, if it is not nil
> the head is accessible with tail next. Inserting at the tail
> is easy. All can be encapsulated into #childrenDo: of course,
> and it saves a slot compared to head+tail+next. Consider that
> the OrderedCollection also costs two slots (one slot for the OC
> instance variable and one slot in the OC itself) so you'll save
> memory for the empty OC slots (probably like 100 bytes per
> element, totalling ~6 MB).
>
> For the attributes dictionary, reusing the RBSmallDictionary
>
> What is the difference between LookupTable and RBSmallDIctionary? What
> would be the more appropriate, and in which cases?
RBSmallDictionary gives up hashing, and just does a linear search over
an OrderedCollection.
LookupTable is the same as a Dictionary, but it doesn't use Associations
and this makes it use less memory.
Paolo
- Re: [Help-smalltalk] the test test - an experience report, (continued)
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Paolo Bonzini, 2009/07/20
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Stefan Schmiedl, 2009/07/20
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Paolo Bonzini, 2009/07/20
- Message not available
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Paolo Bonzini, 2009/07/20
- Message not available
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Paolo Bonzini, 2009/07/21
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Paolo Bonzini, 2009/07/20
- Message not available
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents,
Paolo Bonzini <=
- Message not available
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Paolo Bonzini, 2009/07/21
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Paolo Bonzini, 2009/07/21
- Message not available
- Re: [Help-smalltalk] the test test - a more detailed analysis of image contents, Paolo Bonzini, 2009/07/21
Re: [Help-smalltalk] the test test - an experience report, Stefan Schmiedl, 2009/07/22
Re: [Help-smalltalk] the test test - more data, Stefan Schmiedl, 2009/07/24