[Nix-dev] Do you think this is a possibility to speed up creating .nix-profile ?

Eelco Dolstra e.dolstra at tudelft.nl
Thu Apr 24 07:25:44 CEST 2008


Marc Weber wrote:

> Michael Raskin has been right. Having an atomic operation is a design
> goal. I've forgotten about that.
> Anyway:
> 
> time cp -RP .nix-profile .nix-profile2
> shows < 0.01s

This just copies the top-level symlink, so it's a O(1) time operation.  Try

$ time cp -prd .nix-profile/ .nix-profile2

real    0m0.692s
user    0m0.036s
sys     0m0.528s

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list