MagmaCollectionReader>>size takea a long time

Chris Muller asqueaker at gmail.com
Sat Sep 1 01:29:13 UTC 2007


> On 8/31/07, Igor Stasenko <siguctua at gmail.com> wrote:
> > use collection.
> > a #size for MagmaCollectionReader is not something which can be fast,
> > because collectionreader designed for reading/filtering collections
> > with provided filter query. It's impossible to determine the number of
> > items in filtered collection in other way than reading and testing
> > full collection, thats why #size is bad practice for using with
> > collectionreader. It designed for sequential reading, not for random
> > access.

This is so wrong.  Please read the section "Optimizing Performance" in
the documentation about querying MagmaCollections.

  http://wiki.squeak.org/squeak/5859


More information about the Magma mailing list