|Lex start flags performance email@example.com (wim vandenhaute) (2001-11-26)|
|Re: Lex start flags performance firstname.lastname@example.org (wim vandenhaute) (2001-12-07)|
|From:||wim vandenhaute <email@example.com>|
|Date:||26 Nov 2001 22:02:08 -0500|
|Posted-Date:||26 Nov 2001 22:02:08 EST|
So far the parser i used (coded in lex and yacc) used simple int flags
for distinction between different file formats the parser has to be
capable to process After a revision we decided to replace these int
flags by the start conditions for left context sensitivity (%start
SwavParser ... )
Is there a way by which I can be sure that this will gain me
performance improvement. Is there a best way on how to do it ?
The case is that to substitute all these int flags by start conditions
it is a very big and complex work so from now we started to just
replace the biggest ones and see what it gives. After some simple
tests using /usr/bin/time we gained almost no performance.
Thanks for your help.
[As I recall, start states don't slow down lex's matcher at all. -John]
Return to the
Search the comp.compilers archives again.