in reply to Parse::RecDescent and need for speed

If I was to use Parse::RecDescent, would it go faster?
Maybe.

(is Parse::RecDescent all in perl?)
Yes, but that may be irrelevant.

Before proceeding, you may want to try figuring out exactly where your file parsing script is spending its time. Packages like Devel::Timer and Devel::Profiler can help with that. The thing is that you may be surprised by the results -- the slow part may not be your parsing logic, but something else.

  • Comment on Re: Parse::RecDescent and need for speed

Replies are listed 'Best First'.
Re^2: Parse::RecDescent and need for speed
by EchoAngel (Pilgrim) on Feb 15, 2005 at 23:08 UTC
    it's in the functions where I am processing comment statements
      my script tries to preserve the whole file within a structure hash , including comments.

        Hve you checked the memory usage? Big hashes may eat up memory until you start using virtual memory - which is very slow.