[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Speed Question...
From: |
Darren Schreiber |
Subject: |
Speed Question... |
Date: |
Tue, 16 Nov 1999 21:35:40 -0800 |
In the modified Schelling simulation I am working on, I have a large number
of agents (up to 50,000) that are comparing the utility of three to five
different locations to find the best. I am using NSelect to create an
optionsList of random locations to compare for each agent.
I have been using atOffset to parse the optionsList. I am planning on
changing to use index instead.
Which way should be faster?
The steps using index would be
1. use NSelect to create optionsList with 5 possible locations for the agent
2. create an index
3. parse the list calculating the utility for each location
4. drop the index
5. repeat 50,000 times
Thanks in advance.
Darren
_____________________________________________
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.
- Maps and LispArchiver, Benedikt Stefansson, 1999/11/16
- Re: Maps and LispArchiver, Benedikt Stefansson, 1999/11/16
- Speed Question...,
Darren Schreiber <=
- Re: Speed Question..., Marcus G. Daniels, 1999/11/17
- Re: Speed Question..., Darren Schreiber, 1999/11/17
- Re: Speed Question..., Marcus G. Daniels, 1999/11/17
- Re: Speed Question..., Darren Schreiber, 1999/11/17
- Re: Speed Question..., jalex, 1999/11/17
- Re: Speed Question..., Marcus G. Daniels, 1999/11/17