[Newbies] Iterating and removing items from OrderedCollections
Yoshiki Ohshima
yoshiki at vpri.org
Thu Sep 18 18:55:36 UTC 2008
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
More information about the Beginners
mailing list