in reply to Presort's Cost
in thread Efficiency and Large Arrays
Yes, simple sorting requires a lot of memory, but even a more complex sort requires that at the very least you read each record once. Why not just grab the information while you are there, as in my example program above? I agree that a sorted file is far better, and you'd probably want to get it sorted at some point, but I would not call it the only "sane" way! :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Presort's Cost - 2
by gryng (Hermit) on Jul 26, 2000 at 18:15 UTC |