Re: [PATCH] performance-tests: tests for renamed/copied files in notmuch new

Subject: Re: [PATCH] performance-tests: tests for renamed/copied files in notmuch new

Date: Fri, 05 Apr 2019 13:59:44 -0300

To: Tomi Ollila, Michael J Gruber, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:

>> +done < <(find mail -type f ! -path 'mail/.notmuch/*' )
>
> // this comment was written last in this email, just for fun >;) //
>
> find mail -type f ! -path 'mail/.notmuch/*' | sed -n '1~4 p' > $manifest
> count=`wc $manifest`
>
> (I'd be interested which one of the above were faster -- my suggestion
> does quite a many more forks and execve's but abowe read loop 200 000 
> read(2)'s and [lf]seek(2)s (and then 50 000 opens). 
> well, probably no-one would notice difference...)

Your version is _much_ faster so I used it, along with the other
suggestions in the version I just pushed to master.

d
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: