in reply to Re: reading from file.
in thread reading from file.
Unless the script is long running the hash solution is still sub optimal. Read the name, then look through the file, will on average read half the file for a valid name. The hash solution must always read the entire file. A better way to store the file could improve things even more, but perhaps we get silly...
Cheers,
R.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reading from file.
by kcott (Archbishop) on Nov 14, 2013 at 07:12 UTC | |
by scripter87 (Novice) on Nov 14, 2013 at 10:46 UTC |