http://www.perlmonks.org?node_id=1003736


in reply to Re: Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)
in thread Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)

thanks for your suggestion , but the concern is since the source file is huge wont it cause memory issues if i open the file for reading the rows?
  • Comment on Re^2: Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)

Replies are listed 'Best First'.
Re^3: Need help to fine tune perl script to make it faster( currently taking more than 30 minutes)
by roboticus (Chancellor) on Nov 14, 2012 at 03:20 UTC

    anujajoseph:

    If the source file is too large to fit into memory, then the second suggestion might be better. But since computers tend to have so much RAM nowadays, most files will fit into memory.

    Update: On rereading the thread, I realize that in my first post I left out a word in the second suggestion. It should be an array of line numbers.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.