help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nested comments


From: john43
Subject: Re: Nested comments
Date: Wed, 2 Jul 2003 13:35:23 -0400

>%option yylineno entails a performance penalty ONLY on 
rules that can match
>newline characters
>
>Can it be that %option yylineno causes such a severe 
performance loss?

No, you can only see a performance loss with yylineno 
(in the new code) if all these conditions hold:

  1. The rule could possibly match a newline, and
  2. The rule matches frequently or matches a lot
     of text, and 
  3. Your parser has such low overhead that a rescan
     of yytext would even be noticable.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]