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

Performance bug: unnecessary double-decryption of blocks #182

Merged
merged 2 commits into from
Dec 16, 2017

Conversation

peculater
Copy link
Contributor

This line is duplicated with no side-effect I can find. The comparable chunk dealing with string decrypting only has one call, as do both encryption chunks. Looks like a copy-and-paste-o. Removing it passes all tests (including puppet ones after PR #181) and gives me about a ~15% improvement in overall block decryption speed with the particular eyaml file I care about.

@sihil
Copy link
Collaborator

sihil commented Nov 15, 2015

Does look like a copy and paste error - mine by all accounts. Good spot @peculater.

👍

@peculater
Copy link
Contributor Author

Rebased this against master now that the test-passing stuff is in. Yay for green checks. :-)

@r4v5 r4v5 mentioned this pull request Apr 29, 2016
@mattkenn4545
Copy link

Should this be closed?

@gdubicki
Copy link
Member

You mean merged, @mattkenn4545 ? If so then I am +1 for it.

@vinzent vinzent added the bug label Dec 16, 2017
@vinzent vinzent merged commit c0eb337 into voxpupuli:master Dec 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants