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

Fix performance regression in array serialization #61

Merged

Conversation

caelunshun
Copy link
Contributor

I noticed poor performance when serializing arrays, and profiling revealed that i8_array, i32_array, etc. were allocating a string for each element. Removing the allocation increases performance by an order of magnitude.

@atheriel
Copy link
Collaborator

Looks great!

@atheriel atheriel merged commit 36d27a3 into PistonDevelopers:master Jan 30, 2021
@caelunshun caelunshun deleted the fix-array-serialization-perf branch January 30, 2021 19:02
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