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

play-site: Improve initialization concurrency #401

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Conversation

juliaogris
Copy link
Member

Improve initialization concurrency, so that we load sample.json, sample content
in parallel to the large evy.wasm file. The difference can be observed in
browser developer tools with network throttling enabled and watching the
waterfall - instead of the previous:

|--- evy.wasm -------------------------|
                                       |-- sample.json -|
                                                        |-- welcome.evy -|

we now have

|--- evy.wasm -------------------------|
|-- sample.json -|
                 |-- welcome.evy -|

This means that for any hash other than #welcome the editor contents are visible
and syntax colored faster.

Base automatically changed from e2e-docker-platform to main August 1, 2024 08:23
Improve initialization concurrency, so that we load sample.json, sample content
in parallel to the large evy.wasm file. The difference can be observed in
browser developer tools with network throttling enabled and watching the
waterfall - instead of the previous:

	|--- evy.wasm -------------------------|
	                                       |-- sample.json -|
	                                                        |-- welcome.evy -|

we now have

	|--- evy.wasm -------------------------|
	|-- sample.json -|
	                 |-- welcome.evy -|

This means that for any hash other than #welcome the editor contents are visible
and syntax colored faster.
Copy link
Member

@camh- camh- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥦

@juliaogris juliaogris merged commit dc6902e into main Aug 1, 2024
3 checks passed
@juliaogris juliaogris deleted the play-concurrent branch August 1, 2024 08:31
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.

2 participants