[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: performance bottleneck in yy_get_next_buffer function
From: |
Hans Åberg |
Subject: |
Re: performance bottleneck in yy_get_next_buffer function |
Date: |
Thu, 10 Jan 2013 00:30:05 +0100 |
On 9 Jan 2013, at 18:20, Gautam Kapoor <address@hidden> 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