[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] OrderedCollection growing
From: |
Gwenael Casaccio |
Subject: |
[Help-smalltalk] OrderedCollection growing |
Date: |
Fri, 24 Jun 2011 08:17:44 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10 |
Hi,
I've made a small change in OrderedCollection in growBy:shift:
I use the primitive VMpr_OrderedCollection_replaceFromToWithStartingAt.
I guess it should be possible to tweak again a bit the behavior:
In addLast or addFirst if we have any free rooms but first is <= 1 or
last >= n we could move instead of allocating a new collection.
Gwen
OrderedCollection.patch
Description: Text Data
- [Help-smalltalk] OrderedCollection growing,
Gwenael Casaccio <=