|
|
| There's more than one way to do things | |
| PerlMonks |
Re^2: large perl moduleby minek (Novice) |
| on Mar 04, 2010 at 22:09 UTC ( [id://826828]=note: print w/replies, xml ) | Need Help?? |
|
Well, this is supposed to be 'lookup on demand' system
providing lookup services to other servers.
Since it's doing it all the time, there is no point of loading the data over and over again from external storage. The data was before in a data file (many of them actually), but that made the disk too busy.... It seems like these data files were not being cached on the OS level. For each 10k lookups, perl had to read approx 2gb of files. 10k lookups were taking (when executed in a loop) 35s. Now, with the .pm loaded, it takes 10s. The server has 8GB of ram, and it's using (according to top) only 3GB.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||