Skip to content

Create shared luau worker#23

Open
Nicell wants to merge 2 commits into
mainfrom
shared-worker
Open

Create shared luau worker#23
Nicell wants to merge 2 commits into
mainfrom
shared-worker

Conversation

@Nicell

@Nicell Nicell commented Jan 6, 2026

Copy link
Copy Markdown
Collaborator

I noticed that the new luau.org site can use a very large amount of memory, mostly due to the creation of an analysis worker for every single iframe. For example https://luau.org/syntax/ has 24 iframes. That's a lot of workers that use a baseline of 35MB of memory each.

This PR creates a shared worker for analysis when supported by the browser, which should reduce the amount of memory used significantly.

Currently require autocomplete seems to leak between them. I can't find any other state leaks, but more testing should be done.

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.

1 participant