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

Build the C extension with optimize options enabled #230

Merged

Conversation

BewareMyPower
Copy link
Contributor

Currently the CMAKE_BUILD_TYPE option is not configured when building the C extension. With the default config, the compiler might not add optimization flags.

After adding CMAKE_BUILD_TYPE=Release, the total send time of 1000k messages reduced from 30s to 10s with the code example here and Python 3.8 on Ubuntu 20.4 container.

@BewareMyPower BewareMyPower added this to the 3.6.0 milestone Oct 28, 2024
@BewareMyPower BewareMyPower self-assigned this Oct 28, 2024
@BewareMyPower
Copy link
Contributor Author

The CI seems broken. Let me open another PR to handle it.

@merlimat merlimat merged commit 2a26553 into apache:main Nov 1, 2024
11 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/build-with-optimization branch November 1, 2024 05:21
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.

2 participants