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

Run some promises in parallel, wait for all promises #32

Closed
wants to merge 1 commit into from

Conversation

ricochet1k
Copy link
Contributor

Waiting for getAllTerrainData(), getUserData() and runtimeData.get all at once is giving me a decent speedup. Before it was about 600-900ms per tick when the server starts up, with this change it is 400-500ms.

Also, some promises were not being waited for. It doesn't look like anything actually used them right after, so that probably never caused any issues, but this way should be a bit safer.

@ricochet1k ricochet1k changed the base branch from master to ptr December 1, 2018 20:03
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