in reply to Re^4: how to read multiple line from a file
in thread how to read multiple line from a file
Sure but I think we should try and measure before we optimize.
> and endless memory consumption otherwise.
Why? Someone .. (I think Grandfather) said once linked lists are rarely needed in Perl, because arrays are optimized in this way.(?!?)
Anyway having an array were the newest line is somewhere in the middle results in arithmetical overhead.
Slicing and copying this array in a sorted one leads to new overhead.
I think try and measure is easier than digging into theoretical calculations...
Cheers Rolf
( addicted to the Perl Programming Language)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: how to read multiple line from a file
by educated_foo (Vicar) on Apr 14, 2013 at 20:56 UTC | |
by LanX (Saint) on Apr 14, 2013 at 21:08 UTC | |
by educated_foo (Vicar) on Apr 14, 2013 at 21:26 UTC | |
by LanX (Saint) on Apr 14, 2013 at 22:16 UTC | |
by educated_foo (Vicar) on Apr 16, 2013 at 14:34 UTC |