Re: Speeding up LEX scanning times

Stefan Monnier <monnier@di.epfl.ch>
Fri, 3 Feb 1995 08:42:52 GMT

          From comp.compilers

Related articles
Speeding up LEX scanning times pahint@eunet.be (1995-02-02)
Re: Speeding up LEX scanning times dimock@das.harvard.edu (1995-02-02)
Re: Speeding up LEX scanning times c1veeru@WATSON.IBM.COM (Virendra K. Mehta) (1995-02-02)
Re: Speeding up LEX scanning times monnier@di.epfl.ch (Stefan Monnier) (1995-02-03)
Re: Speeding up LEX scanning times mercier@hollywood.cinenet.net (1995-02-03)
Re: Speeding up LEX scanning times vern@daffy.ee.lbl.gov (1995-02-04)
Re: Speeding up LEX scanning times eifrig@beanworld.cs.jhu.edu (1995-02-07)
| List of all articles for this month |
Newsgroups: comp.compilers
From: Stefan Monnier <monnier@di.epfl.ch>
Keywords: lex, performance
Organization: Ecole Polytechnique Federale de Lausanne
References: 95-02-010
Date: Fri, 3 Feb 1995 08:42:52 GMT

Pieter Hintjens <pahint@eunet.be> wrote:
] However, I still find that the scanner is slow. I don't think I made
] any mistakes; for instance all keywords are identified by looking-up
] a table, rather than as individual scanner tokens.


Maybe, you should try another lexer generator. as John mentioned,
flex is supposedly faster and re2c is supposedly even faster.
flex has the advantage of being mostly lex compatible, whereas re2c
would require a little more work. But there are other lexer generators
out there in case neither flex nor re2c suits you.




Stefan
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.