-
Notifications
You must be signed in to change notification settings - Fork 270
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
build.rs: Add feature 'lowmemory' to reduce memory usage #140
Conversation
ACK 09037fc |
If you add a commit bumping the version to 0.15.1 (and setting the date in CHANGELOG.md) I can merge and publish today |
Whoops, I didn't realize that the version is already at |
Do we think 3 is good is that "too low" to be reasonable? |
Oh, yeah, 0.15.1 just had a docs.rs fix. @real-or-random for embedded applications where speed is nonessential I think we want "as low as possible". |
I once did some benchmarks here: bitcoin-core/secp256k1#614 (comment)
|
added version bump to 0.15.2 and updated the changelog accordingly ! |
If you want as low as possible, that's "2" and not "3". @laanwj Can you update this? (I restarted Travis, which had some hiccup). |
Travis is still having problems :/ |
That would be 340 to 170 bytes? don't know if that's worth it. |
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.
I'm not sure either; that's why I started the discussion about a reasonable low value. I think 3 is good, I 'd even pick 4.
build.rs
Outdated
|
||
if cfg!(feature = "lowmemory") { | ||
base_config.define("ECMULT_WINDOW_SIZE", Some("3")); // This is the lowest accepted value by configure |
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.
If we want anything > 2, then we shouldn't claim that this is the lowest accepted value.
OK, I'll set it to 4 and remove that comment. |
Currently, this only set `ECMULT_WINDOW_SIZE` to 4 instead of 15. Fixes #139. fixup
And fill in release date for 0.15.2.
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.
utACK
Published 0.15.2 |
Currently, this only set
ECMULT_WINDOW_SIZE
to 4 instead of 15.Fixes #139.