Skip to content

📦 Make release builds compile very optimized#1586

Merged
webknjaz merged 3 commits intoaio-libs:masterfrom
webknjaz:packaging/optimized-release-n-comprehensive-debug
Oct 28, 2025
Merged

📦 Make release builds compile very optimized#1586
webknjaz merged 3 commits intoaio-libs:masterfrom
webknjaz:packaging/optimized-release-n-comprehensive-debug

Conversation

@webknjaz
Copy link
Copy Markdown
Member

@webknjaz webknjaz commented Oct 26, 2025

This patch improves the in-tree build backend to allow the end-users append CFLAGS and LDFLAGS by setting respecitve environment variables.

It additionally sets up default compiler flags to perform build with maximum optimization in release mode. And when line tracing is requested, the compiler and linker flags are configured to include as much information as possible for debugging and coverage tracking.

As a result, the C-extensions published to PyPI are going to be small while their development/testing environment variants will be big.

Are there changes in behavior for the user?

yarl's footprint is smaller, and it should run faster.

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants