-
Notifications
You must be signed in to change notification settings - Fork 725
Better sigcache implementation (CuckooCache) #1669
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
Conversation
|
Need to include the cuckoocache header in the makefile to be able to compile on all platforms (ref: bitcoin#9393). |
|
done, updated. I didn't check travis output. |
|
This can be rebased now. |
SQUASHME: Change cuckoocache to only work for powers of two, to avoid mod operator SQUASHME: Update Documentation and simplify logarithm logic SQUASHME: OSX Build Errors SQUASHME: minor Feedback from sipa + bluematt SQUASHME: DOCONLY: Clarify a few comments.
SQUASHME: Update Tests for other SQUASHMEs
- If the -maxsigcachesize parameter is set to zero, setup a minimum sized sigcache (2 elements) rather than segfaulting. - Handle maxsigcachesize being negative - Handle maxsigcachesize being too large
It was refactored into multiple functions in 0cc8b6b.
This moves the SignatureCacheHasher to the sigcache header, out of the anonymous namespace, so that the tests can import it.
|
rebased. |
random-zebra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice backport. Tested ACK 2749d0a
Fuzzbawls
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 2749d0a
Built on top of #1668.
Part of the back port series to get us closer to upstream's sigcache current state.
The main ones are: