-
Notifications
You must be signed in to change notification settings - Fork 450
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
Enable use of global secp256k1 context #1123
Conversation
Context creation is expensive. Use the preallocated context that ships with the library.
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Thu Feb 10 18:44:07 CET 2022 |
Codecov Report
@@ Coverage Diff @@
## master #1123 +/- ##
==========================================
- Coverage 78.80% 78.78% -0.02%
==========================================
Files 252 252
Lines 9397 9394 -3
==========================================
- Hits 7405 7401 -4
- Misses 1992 1993 +1
Continue to review full report at Codecov.
|
ink! doesn't use Maybe I'm not right and it doesn't affect the size of the contract, could you check it, please?=) |
@xgreenx Ink! has already replaced If you check the changed files, this PR only introduces the usage of the global But maybe that is not what you mean and I misinterpreted your comment :-) |
Ohh, okay, you only enabled that feature for tests. You didn't touch the code related to contracts. |
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.
Looks fine, just one thing to check related to std
features
* `global-context` feature depends on `std` * Its usage scope was already limited to `std` environment
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.
Not sure why there are contract size changes. I checked PR out and built the contracts locally and they're smaller than what the waterfall reports (and match master
) 🤷♂️
Anyways, thanks!
Context creation is expensive.
Use the preallocated context that ships with the library.
Follows from the work done for this paritytech/substrate#10798