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

realise and nix copy in parallel #7

Open
AleXoundOS opened this issue Jun 20, 2020 · 1 comment
Open

realise and nix copy in parallel #7

AleXoundOS opened this issue Jun 20, 2020 · 1 comment

Comments

@AleXoundOS
Copy link
Owner

AleXoundOS commented Jun 20, 2020

Switching of bottlenecks happens since xz compression takes considerable amount of time. We could realise next nar while compressing the previous. More relevant for fixed output paths.

For example, nix copy /nix/store/4x7f05y3zxkaq74mk44jinnxnpx26yri-MafDb.gnomAD.r2.1.hs37d5_3.8.0.tar.gz means compressing 5.8 GiB with slow lzma/xz. Moreover, it's already compressed with zlib/gzip.

Maybe I should consider switching between compression algorithms when the size is such big or the path is already compressed anyway.

@AleXoundOS AleXoundOS changed the title realise/nix-copy in parallel realise and nix copy in parallel Jun 20, 2020
@AleXoundOS
Copy link
Owner Author

Currently, the issue is partly leveled by 8f130a5 which sets compression=none for archives. Archives are detected by matching a list of extensions.

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

No branches or pull requests

1 participant