Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Parse::RecDescent and need for speed

by VSarkiss (Monsignor)
on Feb 15, 2005 at 22:48 UTC ( [id://431371]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://431371]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found