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

Huge speedup! #53

Merged
merged 3 commits into from
Jan 20, 2017
Merged

Huge speedup! #53

merged 3 commits into from
Jan 20, 2017

Conversation

cruxic
Copy link

@cruxic cruxic commented Jan 20, 2017

You're gonna like this. One big optimization and two small ones. See commit messages.

Adam B added 3 commits January 19, 2017 17:37
…t this is because it packs the data tighter in RAM so it can fit in the CPU cache more easily.
… remove two `& 0xFF` instructions. This saves ~30ms on my machine (at cost 12).
@dcodeIO
Copy link
Owner

dcodeIO commented Jan 20, 2017

Looks good, let me try!

@dcodeIO dcodeIO merged commit bfba82c into dcodeIO:master Jan 20, 2017
@dcodeIO
Copy link
Owner

dcodeIO commented Jan 20, 2017

About 50% speedup for the test suite here. Pretty neat!

@cruxic
Copy link
Author

cruxic commented Jan 21, 2017

Note: I did not commit new files in dist as I was unclear how you build those. You might want to adjust the 2.7x slower figure in the README and benchmark numbers on the wiki.

This might also address issue #42 as I witnessed the disparity myself (before the Int32Array optimization).

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