in reply to Re: how to speed up pattern match between two files
in thread how to speed up pattern match between two files

Thank you for your reply. Ill do that. Unlike the previous reply its really informative and helpful
  • Comment on Re^2: how to speed up pattern match between two files

Replies are listed 'Best First'.
Re^3: how to speed up pattern match between two files
by ww (Archbishop) on Sep 17, 2014 at 22:46 UTC

    PM is about helping you learn; not about spoon-feeding you, nor about do-it-for-you. So read carefully even replies that (in your limited knowledge, maybe) seem not "really informative and helpful."

    In this case, the reply in question seems to me (duh!) both informative and helpful (unless the level of your knowledge is such that you need not have asked the original question). So even if you choose not to profile your code to find out where it's taking a lot of time, you would be well-served to consider the comment about the loops (nested loops are INEFFICIENT in your problem case) and to follow up on the observation about your regexen. If you take just a little time to study perldoc perlretut and or comparable documents, you'll learn how to write one that's not reliant on the death_star ... eg,  .*, even when restricted by the minimal modifier... e.g.,  ?.


    ++$anecdote ne $data