in reply to Re: performance of huge array looping
in thread performance of huge array looping

The source is an ASCII file. I've thought of it, and basically all I need is to load lines which begin with *| and work on them. and their size is much smaller than the file. So I'll read line by line, push into array only the lines that begin with *| (by the way, I need to use m/^\*\|/, don't I?) and loop over them, thus eliminating the need for swap.
  • Comment on Re: Re: performance of huge array looping

Replies are listed 'Best First'.
Re: Re: Re: performance of huge array looping
by RMGir (Prior) on Aug 15, 2002 at 10:40 UTC
    Makes sense...

    Yes, you would need to escape those characters in your regex.
    --
    Mike