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

perf: faster insertion/removal of the Play component by using SparseStorage #34

Merged
merged 2 commits into from
Jan 29, 2022

Conversation

jcornaz
Copy link
Owner

@jcornaz jcornaz commented Jan 29, 2022

Resolve #30

Using SparseStorage instead of the default TableStorage for the play component brings a clear performance improvement (around 50% faster on my laptop) for insertion/removal of the component, with undetectable impact on regular frame update.

Thanks @chrisburnor for the suggestion!

@jcornaz jcornaz self-assigned this Jan 29, 2022
@jcornaz jcornaz changed the title perf: use SparseStorage for Play component perf: faster insertion/removal of the Play component by using SparseStorage Jan 29, 2022
@jcornaz jcornaz enabled auto-merge (squash) January 29, 2022 18:31
@jcornaz jcornaz merged commit 7f37562 into main Jan 29, 2022
@jcornaz jcornaz deleted the perf/play-storage-type branch January 29, 2022 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Play Component Should be SparseSet
1 participant