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

(perf) manually decode the DER representation #6

Merged
merged 1 commit into from
Nov 6, 2015

Conversation

omsmith
Copy link
Contributor

@omsmith omsmith commented Jun 13, 2015

once again, given the limited domain of the problem, we're able to be very specific

this way, we do one new buffer allocation, and ~1 copy

@omsmith
Copy link
Contributor Author

omsmith commented Jun 13, 2015

Before:

fromBuffer
Average (mean) 54.57696632521561

After:

fromBuffer
Average (mean) 555.0520409931949

@omsmith
Copy link
Contributor Author

omsmith commented Jun 13, 2015

Would need additional tests for edge cases, such as the bad length ifs and whatnot

once again, given the limited domain of the problem, we're able to be very specific

this way, we do one new buffer allocation, and ~1 copy
omsmith added a commit that referenced this pull request Nov 6, 2015
(perf) manually decode the DER representation
@omsmith omsmith merged commit ce9153e into Brightspace:master Nov 6, 2015
@omsmith omsmith deleted the manual-decode branch November 6, 2015 20:17
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