help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] OrderedCollection growing


From: Gwenael Casaccio
Subject: Re: [Help-smalltalk] OrderedCollection growing
Date: Mon, 18 Jul 2011 10:47:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11

On 07/04/2011 01:14 PM, Paolo Bonzini wrote:
On 07/04/2011 12:05 PM, Gwenael Casaccio wrote:
So here is the patch.

This is not a patch, it is 10 patches including multiple reverts of
pieces that you have already submitted.

You should have grouped the patches in two, one for #beConsistent and
one squashing everything else.

I've changed OrederedCollection to use
#replaceFrom:to:with:startingAt, SortedCollection uses the Smalltalk
implementation but for growing I call the primitive. And OrderedSet uses
the St implementation.

Why? Is it just because the ordered_set_class is not available? I
believe this rather shows that class checks are too specific.

I pulled some changes in stable-3.2 and others in master only. Please
test master and see how performance compares with your code.

Paolo

Hi,

here is a new patch:

 - #replaceFrom: cannot be called in SortedCollection
 - add basicFirstIndex which return the position of the first object

make check is green

Gwen

Attachment: ReplaceFromTo.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]