Skip to content

Build the C extension with optimize options enabled - #230

Merged
merlimat merged 2 commits into
apache:mainfrom
BewareMyPower:bewaremypower/build-with-optimization
Nov 1, 2024
Merged

Build the C extension with optimize options enabled#230
merlimat merged 2 commits into
apache:mainfrom
BewareMyPower:bewaremypower/build-with-optimization

Conversation

@BewareMyPower

Copy link
Copy Markdown
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
Copy Markdown
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
@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

2 participants