From: David Bremner <david@tethera.net>
To: Tomi Ollila <tomi.ollila@iki.fi>,
Michael J Gruber <git@grubix.eu>,
notmuch@notmuchmail.org
Subject: Re: [PATCH] performance-tests: tests for renamed/copied files in notmuch new
Date: Fri, 05 Apr 2019 13:59:44 -0300 [thread overview]
Message-ID: <87ftqwcrr3.fsf@tethera.net> (raw)
In-Reply-To: <m2ftqyonvt.fsf@guru.guru-group.fi>
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
next prev parent reply other threads:[~2019-04-05 16:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-06 14:04 [PATCH] introduce new.rename_tags for renamed (moved) messages Michael J Gruber
2018-09-08 0:47 ` David Bremner
2018-09-18 15:32 ` [PATCH v2] " Michael J Gruber
2019-04-02 12:40 ` [PATCH] performance-tests: tests for renamed/copied files in notmuch new David Bremner
2019-04-02 12:45 ` David Bremner
2019-04-03 20:05 ` Tomi Ollila
2019-04-05 16:59 ` David Bremner [this message]
2019-04-03 1:28 ` [PATCH v2] introduce new.rename_tags for renamed (moved) messages David Bremner
2018-09-21 6:48 ` [PATCH] " Gaute Hope
[not found] ` <CAA19uiRXVEp8kPdxUw4yDvVLmG0DSXpxaKKn-ZC0uFC97uJi_Q@mail.gmail.com>
2018-09-21 8:34 ` Gaute Hope
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ftqwcrr3.fsf@tethera.net \
--to=david@tethera.net \
--cc=git@grubix.eu \
--cc=notmuch@notmuchmail.org \
--cc=tomi.ollila@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).