Collections issue
Igor Stasenko
siguctua at gmail.com
Mon May 17 05:29:31 UTC 2010
On 17 May 2010 03:05, Facundo Vozzi <facundov79 at gmail.com> wrote:
> Hi,
> I'm using Magma r42 on Pharo 1.0 and I have this situation:
>
> "2356 Cities"
> Time millisecondsToRun: [mySession root states first cities do: [:each
> | Transcript show: each]] "16178 milliseconds"
>
> mySession root answer a singleton that have 23 states and the first state
> has 2356 cities. Is 16178 milliseconds the expected time for accessing to
> it?
>
> states and cities are OrderedCollection instances. Must I change it to
> MagmaCollection for better performance?
>
Yes. Alternatively you could change the magma read strategy, to tell it
to fully reify all objects in your collection.
But for large collections, use of MagmaCollection is preferable.
> Thanks,
> Facundo
> _______________________________________________
> Magma mailing list
> Magma at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>
>
--
Best regards,
Igor Stasenko AKA sig.
More information about the Magma
mailing list