in reply to IO::Handle slowdowns?
In all cases, you are building a global array, @ary, that gets up to eight million elements, each a reference to some perl type. That eats lots of memory, probably forcing you into swap and thrashing. The bigger the structure, the sooner. Swap is notorious for bad scaling.
To open and close IO::Handles inside the loop naturally takes more time than setting up an anonymous hash. In many cases you are contending against swap for the disk spindle.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: IO::Handle slowdowns?
by mpaduano (Initiate) on Feb 03, 2004 at 00:04 UTC | |
by ysth (Canon) on Feb 03, 2004 at 00:20 UTC | |
by mpaduano (Initiate) on Feb 03, 2004 at 18:14 UTC |