Eric Blake writes:
> On 04/15/2015 08:50 PM, Peng Yu wrote:
>> Hi, It seems that it might be convenient to allow `find` to use
>> exported functions from shell for -exec*? Can this feature be added in
>> the future?
>
> If your shell supports function exports, then the feature already
> exists. M
Bernhard Voelker writes:
>> real 0m5.354s
>> user 0m1.145s
>> sys 0m1.539s
>
> Well, half a second for times creating and running /usr/bin/test
> doesn't seem too much. At least, I can second your timing results.
In a sense, the question is "Do you think that creating, running, and
destroyi
On 04/16/2015 04:51 PM, Peng Yu wrote:
real0m0.340s
real 0m2.455s
Oops, I misread the numbers in your first mail.
On my home machine, the example with /usr/bin/test just takes
about half a second while it takes ~5 seconds on your host.
I now checked on a different system, and it took ~
On Thu, Apr 16, 2015 at 1:26 AM, Bernhard Voelker
wrote:
> On 04/16/2015 06:04 AM, Peng Yu wrote:
>> Hi, The following code shows that -prune when used with -exec can be
>> very slow. Is there somehow a way to speed this up?
>>
>> ~$ cat main.sh
>> #!/usr/bin/env bash
>>
>> tmpdir=$(mktemp -d)
>>