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

Optimization: release flags #5

Merged
merged 2 commits into from
Jul 10, 2024
Merged

Conversation

arkavo-com
Copy link
Contributor

@arkavo-com arkavo-com commented Jul 10, 2024

Performance optimized.

Release build:
6% faster
less than 60% CPU usage under load (10000 rewraps)

ecdh_custom() about 0.0063 ms faster (approximately 0.28% improvement).

Updated the Rust backend build process and removed superfluous code. The Github Actions workflow will now strip the release binary to reduce its size. The build settings for the Rust backend have been optimized in Cargo.toml and updated the version. In addition, unused code for hashing the shared point's x-coordinate in the main.rs file has been removed.

Updated the Rust backend build process and removed superfluous code. The Github Actions workflow will now strip the release binary to reduce its size. The build settings for the Rust backend have been optimized in Cargo.toml and updated the version. In addition, unused code for hashing the shared point's x-coordinate in the main.rs file has been removed.
The target CPU configuration option has been moved from the Cargo.toml [profile.release] section to a comment at the top of the file. This allows users to opt into setting the target CPU to native during the build process if they so choose, by exporting the RUSTFLAGS environment variable.
Copy link

@arkavo-com arkavo-com marked this pull request as ready for review July 10, 2024 22:47
@arkavo-com arkavo-com changed the title Update Rust backend build settings and function Optimization: release flags Jul 10, 2024
@arkavo-com arkavo-com merged commit bcfb9e2 into main Jul 10, 2024
4 checks passed
@arkavo-com arkavo-com deleted the feature/optimization-release branch July 13, 2024 03:19
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.

1 participant