perl.recdescent...Re: Speed issue w LARGE parsed file by Colin Kuskie- July 17, 2006 On Mon, Jul 17, 2006 at 02:47:09PM -0500, david.weberl-3com.com wrote: > Am I SOL with parsing this file use RecDescent or is something glaringly> bad w the below syntaxI haven&39;t looked at your file, but if you&39;re using Perl 5.8.5 or greater,the speed issue may be caused by perl itself:http:rt.perl.orgrt3PublicBugDisplay.htmlid=34925The fix for this bug causes a huge slowdown inside of Text::Balanced,or any other module that reblesses objects with overloading.Colin Kuskiehttp://www.nntp.perl.org/group/perl.recdescent/2006/07/msg503.html RE: Speed issue w LARGE parsed file by david.weber- July 17, 2006 FYI, here&39;s the perl file:use strict;use Parse::RecDescent;$::RD_ERRORS = 1; unless undefined, report fatal errors$::RD_WARN = 1; unless undefined, also report non-fatal problems$::RD_HINT = 1; if defined, also suggestion remedies$::RD_TRACE = 1; if defined, also trace parsers&39; behaviour$::RD_AUTOSTUB = 1; if defined, generates "stubs" for undefinedrules$::RD_AUTOACTION = qprint "."; if defined, appends specified actionto productions Load...http://www.nntp.perl.org/group/perl.recdescent/2006/07/msg502.html Speed issue w LARGE parsed file by david.weber- July 17, 2006 Hey all, I&39;m a recdescent newbie, so please cut me some slack ;)I&39;ve got a 1.5Mb file that I&39;m parsing. The grammar is pretty wellestablished, in such that it&39;s from a formal paper, and has EBNFnotation written about it. I&39;ve looked at the EBNF notation, and donemy best to simplify it. In other words, EBNF says some number should befrom 0-65535, so I just specify d1,5 to simplify & speed up theprocessing.W the first set of working grammar (tested using a subset of the...http://www.nntp.perl.org/group/perl.recdescent/2006/07/msg501.html |