You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed on gitter, creating an issue for it so I don't forget.
Are there performance reasons for tokenTypeIdx being a separate property instead of using tokenType.tokenTypeIdx?
the *Idx property was there initially, the tokenType was added for debug reasons. this creates a bit of duplication... It may be slightly faster to access the Idx directly instead of itok.tokenType.tokenTypeIdx.
It may be worth investigating the removal of tokenTypeIdx in favor of only tokenType and measure the performance difference.
There is a comparative benchmark in https://github.com/SAP/chevrotain/tree/master/packages/chevrotain/benchmark_web to test performance changes between different versions of Chevrotain. if the regression is small (1-3%) we can evaluate this model simplification.
The text was updated successfully, but these errors were encountered:
As discussed on gitter, creating an issue for it so I don't forget.
The text was updated successfully, but these errors were encountered: