At Thu, 18 Sep 2008 10:38:52 +0100, Marcin Tustin wrote: > > No in two reasons; 1) he wasn't talking about removing items in the > middle > > Look at the original example.
Right. But still I think suggesting to use LinkedList here is not a good idea. > and 2) OrderedCollection is usually more efficient than the > naive LinkedList, as less dereferencing. (And, it could get more > benefits from using array manipulation primitives like > replaceFrom:to:, but it can't at least for addFirst:.) > > I think this would be an empirical question. Exacly. Measure the performance before suggesting a complex solution. -- Yoshiki _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners