in reply to Re^2: external file reference
in thread external file reference
14k lines of normal line sizes of maybe 100 chars isn't that bad. Consider reading the file into something like $hash{userid}.
which Keszler already said while I as usual did forget to check for new replies before create
Then, if you find the hash build time being significant wrt total runtime, while your 14k file is fairly static: consider a lightweight database like sqlite accessed via DBI.
If you've many independent script or parallel script runs, keeping the hash in memory in a separate process might also be worthwile (old-style client server or some shared memory setup - but that's somewhat like a coding challenge looking for a problem).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: external file reference
by Spooky (Beadle) on Oct 30, 2009 at 16:26 UTC |