-
Notifications
You must be signed in to change notification settings - Fork 746
Optimise crate size #2077
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
Optimise crate size #2077
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2077 +/- ##
=======================================
Coverage 94.52% 94.52%
=======================================
Files 102 102
Lines 23465 23465
=======================================
Hits 22180 22180
Misses 1285 1285 ☔ View full report in Codecov by Sentry. |
@@ -60,39 +60,244 @@ impl<'a> FfdheGroup<'a> { | |||
/// | |||
/// [RFC 7919 Appendix A.1]: https://datatracker.ietf.org/doc/html/rfc7919#appendix-A.1 | |||
pub const FFDHE2048: FfdheGroup<'static> = FfdheGroup { | |||
p: include_bytes!("ffdhe_groups/ffdhe2048-modulus.bin"), | |||
p: &[ |
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.
On this commit, I checked we had working test coverage by introducing a one-bit error into all of these locally, and checking the validation caught it. It did.
Benchmark resultsInstruction countsSignificant differencesThere are no significant instruction count differences Other differencesClick to expand
Wall-timeSignificant differencesThere are no significant wall-time differences Other differencesClick to expand
Additional informationCheckout details:
|
fixes #2076
This takes rustls.crate from 434KB to 334KB, which translates to saving crates.io (and, indeed, downloaders) about 50 GB per day.