-
Notifications
You must be signed in to change notification settings - Fork 21
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
Integrity#match bugfix and other optimizations #79
Conversation
cc @H4ad |
0063869
to
9ce806b
Compare
@@ -512,7 +563,7 @@ function createIntegrity (opts) { | |||
} | |||
} | |||
|
|||
const NODE_HASHES = new Set(crypto.getHashes()) |
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.
Sets are slower to instantiate and only faster on lookups when we get into the thousands of entries. On my machine this has 52 entries.
9ce806b
to
8adaf9b
Compare
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.
very nice cleanup and the fixes totally make sense
Closes #41
Built off of #76
Fixed up test coverage for that PR also