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

Speed up boring cyborg consistency pre-commit check #42589

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

dstandish
Copy link
Contributor

@dstandish dstandish commented Sep 30, 2024

This is typically the slowest pre-commit besides mypy, and it runs every time. Previously it loaded all filenames into memory and ran glob filter on that. It seems faster to apply glob against the file system directly. This makes pre-commit much faster. Previously took around 4 seconds, now about a half a second.

This is typically the slowest pre-commit besides mypy, and it runs every time. Previously it loaded all filenames into memory and ran glob filter on that. It seems faster to apply glob against the file system directly. This makes pre-commit much faster.
@dstandish dstandish changed the title Reduce time of boring cyborg check to 1.3s from 4.0s Reduce time of boring cyborg check to 0.4s from 4.0s Sep 30, 2024
@dstandish dstandish changed the title Reduce time of boring cyborg check to 0.4s from 4.0s Speed up boring cyborg consistency pre-commit check Sep 30, 2024
@dstandish dstandish merged commit 1f16c57 into apache:main Sep 30, 2024
36 checks passed
@dstandish dstandish deleted the speed-up-boring-cyborg branch September 30, 2024 19:58
@potiuk
Copy link
Member

potiuk commented Oct 1, 2024

Nice

joaopamaral pushed a commit to joaopamaral/airflow that referenced this pull request Oct 21, 2024
This is typically the slowest pre-commit besides mypy, and it runs every time. Previously it loaded all filenames into memory and ran glob filter on that. It seems faster to apply glob against the file system directly. This makes pre-commit much faster. Previously took around 4 seconds, now about a half a second.
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
This is typically the slowest pre-commit besides mypy, and it runs every time. Previously it loaded all filenames into memory and ran glob filter on that. It seems faster to apply glob against the file system directly. This makes pre-commit much faster. Previously took around 4 seconds, now about a half a second.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants