in reply to Efficiency and Large Arrays
A side note to those who recommend sorting first - yes, it will help immensely if you are able to do so first, but keep in mind that the sorting itself will be fairly expensive, especially for files this size. In addition, a simple unix sort will not be up to the task (without some further trickery) as each record is in multiple lines (and spans 1+ files) and the sort keys may be in different spots in each record. Not a challenge for perl, of course, but it probaby cancels out any speed benefit of having it pre-sorted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Presort's Cost
by gryng (Hermit) on Jul 26, 2000 at 17:46 UTC | |
by turnstep (Parson) on Jul 26, 2000 at 17:59 UTC | |
by gryng (Hermit) on Jul 26, 2000 at 18:15 UTC |