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

Look up hex values in an array instead calculating them repeatedly #4

Merged
merged 1 commit into from Jan 24, 2018

Conversation

jchambers
Copy link
Owner

This implements almost exactly the same approach as #3, but includes a little more error checking. In benchmarks, this approach is about 5% slower than @agrison's, but it's still roughly a 4x improvement over master (which was itself a 4x improvement over the stock implementation).

@jchambers jchambers merged commit 309231f into master Jan 24, 2018
@jchambers jchambers deleted the hex_value_from_array branch January 24, 2018 04: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.

None yet

1 participant