swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speed Question...


From: Darren Schreiber
Subject: Re: Speed Question...
Date: Wed, 17 Nov 1999 09:12:13 -0800

I've never used a C array to store (id)'s, is that possible and is that
what you are meaning?

As I said in the first email, I am using NSelect to choose 5 locations from
an emptySpacesList.  NSelect puts the locations into a list.  So, if I
understand your suggestion, I would need to then copy that short list into
a C array?  My gut reaction is again to wonder whether that step would cost
more than just using the atOffset?

        Darren

>>>>>> "DS" == Darren Schreiber <address@hidden> writes:
>
>DS> Does the creation and dropping of an index for each agent consume
>DS> more time than is gained by not using atOffset?  Recall that this
>DS> will involve the creation and dropping of 50,000 indexes since
>DS> each agent will be comparing a unique list.
>
>For short lists, it may well be the case that re-creating an index is
>slower.  If at all possible, you'd really win if you could preallocate
>a C array as an ivar.  There's neither cost if you can offset into
>a C array.
>
>                  ==================================
>   Swarm-Support is for discussion of the technical details of the day
>   to day usage of Swarm.  For list administration needs (esp.
>   [un]subscribing), please send a message to <address@hidden>
>   with "help" in the body of the message.


_____________________________________________

                 Darren Schreiber
                  Attorney at Law
                 Graduate Student
             Political Science, UCLA
                address@hidden

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]