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

Test and add #3

Merged
merged 3 commits into from Jun 21, 2013
Merged

Test and add #3

merged 3 commits into from Jun 21, 2013

Conversation

@chkno
Copy link
Contributor

@chkno chkno commented Jun 21, 2013

For your consideration: A combined TestAndAdd method for use cases where these two methods are always called together. This is a performance optimization -- it saves calculating locations twice.

Benchmark results:
The combined TestAndAdd is 23% faster

willf added a commit that referenced this pull request Jun 21, 2013
@willf willf merged commit 296ea24 into willf:master Jun 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.