logo       

RE: [FIX] SortedCollectionFix-sr: msg#00746

lang.smalltalk.squeak.general

Subject: RE: [FIX] SortedCollectionFix-sr

> after my correction in
> correction [was: Re: [FIX] SortedCollectionFix-sr]
> , I think the reason for the performance loss in the
> 'unoptimized' version
> must be the temporarily construction of a *Set* of keys (an
> OrderedCollection would be cheaper) in:

Well, then let's make it something different ;-)

keysSortedSafely
^SortedCollection
withAll: (Array streamContents:[:s| self keysDo:[:key| s
nextPut: key]])
sortBlock:[...]

Cheers,
- Andreas





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise