[Top][All Lists]

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

Re: RFC: Introduce api.token.raw

From: Akim Demaille
Subject: Re: RFC: Introduce api.token.raw
Date: Sat, 14 Sep 2019 09:57:52 +0200

> Le 1 sept. 2019 à 18:41, Akim Demaille <address@hidden> a écrit :
> The NEWS excerpt should be a good summary of the purpose of this
> series of patches:
>  *** Variable api.token.raw: Optimized token numbers (all skeletons)
>  In the generated parsers, tokens have two numbers: the "external" token
>  number as returned by yylex (which starts at 257), and the "internal"
>  symbol number (which starts at 3).  Each time yylex is called, a table
>  lookup maps the external token number to the internal symbol number.
>  When the %define variable api.token.raw is set, tokens are assigned their
>  internal number, which saves one table lookup per token, and also saves
>  the generation of the mapping table.
>  The gain is typically moderate, but in extreme cases (very simple user
>  actions), a 10% improvement can be observed.
> I would really appreciate to get feedback about this.  It is currently
> available on both my GitHub account and on the official Bison repo in
> the branch 'raw'.

Well, no feedback at all in two weeks.

Has been rebased, is currently being checked by the CI, and then will
be pushed in master.

reply via email to

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