[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.
- [PATCH 01/10] style: tidy yacc.c, (continued)
- [PATCH 01/10] style: tidy yacc.c, Akim Demaille, 2019/09/01
- [PATCH 02/10] api.token.raw: implement, Akim Demaille, 2019/09/01
- [PATCH 03/10] api.token.raw: check it, Akim Demaille, 2019/09/01
- [PATCH 04/10] api.token.raw: apply to the other skeletons, Akim Demaille, 2019/09/01
- [PATCH 05/10] api.token.raw: cannot be used with character literals, Akim Demaille, 2019/09/01
- [PATCH 06/10] api.token.raw: document it, Akim Demaille, 2019/09/01
- [PATCH 07/10] parser: use api.token.raw, Akim Demaille, 2019/09/01
- [PATCH 09/10] d: handle eof in yytranslate, Akim Demaille, 2019/09/01
- [PATCH 10/10] java: handle eof in yytranslate, Akim Demaille, 2019/09/01
- [PATCH 08/10] regen, Akim Demaille, 2019/09/01
- Re: RFC: Introduce api.token.raw,
Akim Demaille <=