Skip to content

perf: avoid compiling unused bytecode#752

Merged
henryiii merged 2 commits intopypa:mainfrom
henryiii:henryiii/fix/nocompile
Mar 11, 2024
Merged

perf: avoid compiling unused bytecode#752
henryiii merged 2 commits intopypa:mainfrom
henryiii:henryiii/fix/nocompile

Conversation

@henryiii
Copy link
Contributor

@henryiii henryiii commented Mar 6, 2024

Compiling bytecode is supposed to make usage more consistent for interaction. But it compiles everything, which isn't required for a single use non-interactive temporary environment. We can potentially save a bit of time this way.

This will need to be skipped for the uv backend in #751, since uv defaults to not compiling bytecode, and instead requires a flag to do so (most recent version). But flags aren't identical anyway.

Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@henryiii
Copy link
Contributor Author

henryiii commented Mar 7, 2024

I’ll leave merging this up to @layday so it doesn’t interfere with #751.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@henryiii henryiii force-pushed the henryiii/fix/nocompile branch from 33d987a to 244e768 Compare March 11, 2024 01:32
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@henryiii henryiii merged commit 97ea57b into pypa:main Mar 11, 2024
@henryiii henryiii deleted the henryiii/fix/nocompile branch March 11, 2024 02:36
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.

3 participants