rokucommunity / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
4 stars 2 forks source link

Improve lexer performance by reordering switch statement #56

Open lvcabral opened 3 months ago

lvcabral commented 3 months ago

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 https://github.com/sjbarag/brs/issues/456