[Nix-dev] Re: Performance impact of Nix

Ludovic Courtès ludo at gnu.org
Thu Jul 30 15:28:47 CEST 2009


Tony White <tonywhite100 at googlemail.com>
writes:

> # Test 1 (The hash comes before the package name)
> time find /nix/store/*test-1*

As Marc suggested, glob patterns are expanded by the shell, not by
find(1).

Thus I suspect that Bash' built-in `time', which is what you're using
here, doesn't account for the glob expansion time.

Instead, you might want to try using GNU Time like this:

--8<---------------cut here---------------start------------->8---
$ \time sh -c 'echo /nix/store/*X*'
--8<---------------cut here---------------end--------------->8---

Thanks,
Ludo'.




More information about the nix-dev mailing list