Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve lexer performance by reordering switch statement #56

Open
lvcabral opened this issue Apr 3, 2024 · 0 comments
Open

Improve lexer performance by reordering switch statement #56

lvcabral opened this issue Apr 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lvcabral
Copy link
Collaborator

lvcabral commented Apr 3, 2024

Here's a pull request in BrighterScript that increases the performance of the lexer by 5-20% by re-ordering the items in the scan() switch statement. You might want to consider doing the same in brs.

Original issue by @TwitchBronBron at sjbarag#456

@lvcabral lvcabral added the enhancement New feature or request label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant