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

Use compile_dir to compile #12907

Closed

Conversation

notatallshaw
Copy link
Member

@notatallshaw notatallshaw commented Aug 10, 2024

This is a draft implementation of my idea here #12712 (comment)

However, currently it fails to supress SyntaxWarnings when compiling, it will stay in draft until I figure out how to fix that. There are also probably edge cases I haven't thought of.

Performance improvement on my synthetic test in #12712 (comment) shows a 25 second improvement on my machine.

@notatallshaw
Copy link
Member Author

notatallshaw commented Aug 10, 2024

Hmmm, to keep pip's current behavior, I think I'm going to have to make a utility function called compile_files that is loosely based on compile_dir but simplified and for this use case of already having a list of files and wanting to supress warnings and capture stdout.

It's more complexity but the time savings are relatively quite large.

@notatallshaw
Copy link
Member Author

This is going to need a bit of a different approach, but I have a good idea, I'll make a new PR at some point.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant