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

feat(treefmt): add options to settings and disable cache by default #525

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

terlar
Copy link
Contributor

@terlar terlar commented Nov 11, 2024

The bootstrapping of the cache does not work well with the parallelization of pre-commit, also it introduces quite a slow-down.

Another option that works is to configure require_serial = true. But with this there was still an initial slowdown when the cache was not in place. While disabling the cache was fast every time.

This might work different in different setups thus it makes sense to make it configurable.

Related issue in treefmt:
numtide/treefmt#478

The bootstrapping of the cache does not work well with the
parallelization of pre-commit, also it introduces quite a slow-down.

Another option that works is to configure `require_serial = true`. But
with this there was still an initial slowdown when the cache was not in
place. While disabling the cache was fast every time.

This might work different in different setups thus it makes sense to
make it configurable.
@sandydoo sandydoo added the enhancement New feature or request label Nov 11, 2024
@sandydoo sandydoo merged commit cd1af27 into cachix:master Nov 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants