in reply to Re: Parse::RecDescent and need for speed
in thread Parse::RecDescent and need for speed

Also, keep in mind that Parse::RecDescent parses by "nibbling", which is very expensive for large strings. At one point, theDamian said he would rewrite it to use pos (which wasn't available in 5.004 when he wrote PRD), but has since gotten distracted by other things.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

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

Replies are listed 'Best First'.
Re^3: Parse::RecDescent and need for speed
by Anonymous Monk on Feb 16, 2005 at 10:11 UTC

    At one point, theDamian said he would rewrite it to use pos (which wasn't available in 5.004 when he wrote PRD)

    Bull. pos was available in 5.000, as the perl5.000 manual will tell you.

        Fair enough. Too bad Damian didn't realise that pos() was assignable, even with 5.004.
Re^3: Parse::RecDescent and need for speed
by Anonymous Monk on Feb 16, 2005 at 16:38 UTC
    At one point, theDamian said he would rewrite it to use pos (which wasn't available in 5.004 when he wrote PRD)
    First non-comment, non-whitespace line of Parse::RecDescent:
    use 5.005;
      In fact, the original was written for 5.004, because it was written on MacPerl, which was only 5.004 at the time.

      The use 5.005 was no doubt added later when some other feature required 5.005.

      -- Randal L. Schwartz, Perl hacker
      Be sure to read my standard disclaimer if this is a reply.