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

Minor speed-up #147

Merged
merged 3 commits into from
Nov 1, 2019
Merged

Minor speed-up #147

merged 3 commits into from
Nov 1, 2019

Conversation

tomato42
Copy link
Member

Minor speed-up from not performing the same operations twice and slight micro-opimisation
of inverse_mod (from #127)

depends on #146 and #145

@tomato42 tomato42 added the maintenance issues related to making the project usable or testable label Oct 28, 2019
@tomato42 tomato42 added this to the v0.14 milestone Oct 28, 2019
@tomato42 tomato42 self-assigned this Oct 28, 2019
@coveralls
Copy link

coveralls commented Oct 28, 2019

Coverage Status

Coverage increased (+0.02%) to 94.956% when pulling f237037 on tomato42:speed-up into 8a4a1f9 on warner:master.

@tomato42 tomato42 force-pushed the speed-up branch 6 times, most recently from 8e54cfa to 2e928fe Compare October 30, 2019 19:46
since every time Public_key is initialised, it verifies the order
of the point, its creation is expensive,

reuse the object created by VerifyingKey constructor to make it cheaper
since the divmod() is comparatively expensive, and inverse_mod()
is extensively used, use a slightly different implementation that
doesn't use it
@tomato42 tomato42 marked this pull request as ready for review October 31, 2019 15:04
ensure that the inverse_mod with 0 works correctly
Copy link

@Jakuje Jakuje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tomato42 tomato42 merged commit d64e10c into tlsfuzzer:master Nov 1, 2019
@tomato42 tomato42 deleted the speed-up branch November 1, 2019 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance issues related to making the project usable or testable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants