in reply to Re: Faster and more efficient way to read a file vertically -- updated
in thread Faster and more efficient way to read a file vertically
million of lines still probably fit in memory.Maybe. Or maybe not. But why take the chance? Especially with an AoA which has some extra cost. It is so easy to do everything in the first loop, when reading each line. And BTW, it is also probably faster, because using an array of arrays implies copying the data once more.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Faster and more efficient way to read a file vertically -- updated
by Discipulus (Canon) on Nov 03, 2017 at 18:05 UTC |