in reply to Re^3: Faster Hash Slices
in thread Faster Hash Slices
so that the loop is in effect useless, it would be faster to go straight to the last line of the file, split it and run the discussed command only once.
What "discussed command"? The OP doesn't mention any command; nor show any "command".
You appear to be assuming that the op reads all the lines of the file; and then runs this "discussed command" once the rad loop ends; but there is no evidence of that within the thread.
An alternative scenario: He reads a line; splits it to the hash; accesses a few named fields and performs some calculation that affects some variables declared before the loop is entered; and then loops back and reads the next line; until the file is read.
There is no evidence from the OP one way or the other anywhere in the thread, but to assume your version is to assume the OP is ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Faster Hash Slices
by Laurent_R (Canon) on Nov 30, 2013 at 19:05 UTC |