Skip to content

perf: add an early return when there are no optimization levels to compile bytecode for#341

Merged
Secrus merged 1 commit into
pypa:mainfrom
radoering:perf/compile-bytecode-early-return
Jun 19, 2026
Merged

perf: add an early return when there are no optimization levels to compile bytecode for#341
Secrus merged 1 commit into
pypa:mainfrom
radoering:perf/compile-bytecode-early-return

Conversation

@radoering

Copy link
Copy Markdown
Contributor

Even if no bytecode should be compiled, several unnecessary path operations are performed for each record entry. We can avoid this with an early return.

@Secrus Secrus merged commit 1e38542 into pypa:main Jun 19, 2026
18 checks passed
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