one CLI to format your repo (Go re-write)
This repository has been archived on 2024-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Brian McGee 55ca4468cc fix: stalling on large file sets (#18)
When running against nixpkgs we were stalling. This was due to a long running read tx which was preventing any writes.

This breaks up reading the cache when walking the filesystem into many smaller read txs.

On my laptop I'm now getting the following with the echo sample:

```console
# fresh cache

❯ nix run .# -- -c --config-file ./test/echo.toml --tree-root ../../../github.com/nixos/nixpkgs
38825 files changed in 320.655826ms

# hot cache

❯ nix run .# -- --config-file ./test/echo.toml --tree-root ../../../github.com/nixos/nixpkgs
0 files changed in 252.920853ms%
```

Signed-off-by: Brian McGee <brian@bmcgee.ie>

Reviewed-on: #18
Reviewed-by: Jonas Chevalier <zimbatm@noreply.git.numtide.com>
Co-authored-by: Brian McGee <brian@bmcgee.ie>
Co-committed-by: Brian McGee <brian@bmcgee.ie>
2024-01-07 18:57:51 +00:00
internal fix: stalling on large file sets (#18) 2024-01-07 18:57:51 +00:00
nix fix: nix build 2024-01-03 09:20:32 +00:00
test feat: allow missing formatters (#6) 2023-12-23 15:00:39 +00:00
.envrc feat: initial import 2023-12-23 12:50:51 +00:00
.gitignore feat: initial import 2023-12-23 12:50:51 +00:00
flake.lock feat: initial import 2023-12-23 12:50:51 +00:00
flake.nix feat: initial import 2023-12-23 12:50:51 +00:00
go.mod chore: remove dependency on juju/errors (#11) 2024-01-02 10:33:50 +00:00
go.sum chore: remove dependency on juju/errors (#11) 2024-01-02 10:33:50 +00:00
gomod2nix.toml fix: nix build 2024-01-03 09:20:32 +00:00
LICENSE.md fix: license contributors 2023-12-23 13:33:37 +00:00
main.go feat: change module root to git.numtide.com 2023-12-23 13:39:16 +00:00