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: Tue, 16 Nov 1999 22:00:22 -0800

Does the creation and dropping of an index for each agent consume more time
than is gained by not using atOffset?  Recall that this will involve the
creation and dropping of 50,000 indexes since each agent will be comparing
a unique list.

        Darren


>>>>>> "DS" == Darren Schreiber <address@hidden> writes:
>
>DS> I have been using atOffset to parse the optionsList.  I am
>DS> planning on changing to use index instead.
>
>DS> Which way should be faster?
>
>If you have a List and you want to step through it, it is faster to
>use an index because to get to the nth item involves traveling through
>the n - 1 previous items.  But if you have an Array (either Swarm or C),
>it doesn't matter which one you use.
>
>                  ==================================
>   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]