Re: performance bottleneck in yy_get_next_buffer function
Hans Ã…berg <[email protected]> Thu, 10 Jan 2013 00:30:05 +0100
| Newsgroups | gmane.comp.lex.flex.general |
|---|---|
| Message-ID | <[email protected]> |
On 9 Jan 2013, at 18:20, Gautam Kapoor <[email protected]> wrote: > I want to discuss a particular performance issue and how I tried to fix it. I am wondering why it is not part of the default scanner generated by flex because I think the developers must have seen this too. Flex is currently not developed or maintained, it seems. But a known problem is that rules that capture a lot of input slows the lexer down. So, for example, scanning for a comment spanning several lines is better done line by line. Does your patch fix that problem? Hans