in reply to Benchmarking A DB-Intensive Script
70k items is not that large for an array. Depending on how many properties are attatched, you probably could hold the whole thing in memory at once. It would be worth trying since that will likely speed up your processing by orders of magnitude. Filter out any element with no properties as you load the array.
Don't just select pairs at random and then check to see if they've already been done. That gets very inefficienct after you checked half of the array. Iterate over it instead and only check each pair once. Select the elements with a set of nested loops.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Benchmarking A DB-Intensive Script
by bernanke01 (Beadle) on Mar 14, 2006 at 20:06 UTC | |
by blogical (Pilgrim) on Mar 14, 2006 at 21:29 UTC | |
by tilly (Archbishop) on Mar 14, 2006 at 22:29 UTC | |
by blogical (Pilgrim) on Mar 15, 2006 at 05:04 UTC | |
by bernanke01 (Beadle) on Mar 14, 2006 at 21:45 UTC | |
by blogical (Pilgrim) on Mar 15, 2006 at 04:54 UTC |