Skip to content

Virtualize Bytecode View#62

Merged
Nicell merged 2 commits into
mainfrom
virtualize-bytecode
May 8, 2026
Merged

Virtualize Bytecode View#62
Nicell merged 2 commits into
mainfrom
virtualize-bytecode

Conversation

@Nicell

@Nicell Nicell commented May 8, 2026

Copy link
Copy Markdown
Collaborator

Prior to this, we would highlight and render every single HTML element of the byte code. After this change, we only render what's in (and just out of) view. This also updates our scroll to logic to only smoothly scroll to when it's within 5 viewports distance, otherwise it just jumps to avoid huge virtual list churn.

The speed up on this is really hard to measure because it's so fast now and blends in with the editor highlighting and parsing. But as an example we went from ~20s hang on 4k lines of dense luau to less than 100ms. So if I had to guess around 200x faster in extreme cases.

Closes #60

@Nicell Nicell merged commit 216c362 into main May 8, 2026
1 check passed
@Nicell Nicell deleted the virtualize-bytecode branch May 10, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to disable syntax highlighting

1 participant