unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH 1/2] WIP: add performance test for removing files.
Date: Thu, 15 Apr 2021 10:36:27 +0300	[thread overview]
Message-ID: <m2k0p4yp6s.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <20210414021627.1236560-2-david@tethera.net>

On Tue, Apr 13 2021, David Bremner wrote:

> No doubt this is non-portable use of tar.

portable alternative(s) (?)

(we probably can trust no file names start with '-')

> ---
>  performance-test/T00-new.sh | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>
> diff --git a/performance-test/T00-new.sh b/performance-test/T00-new.sh
> index a14dd13f..1eeac6d0 100755
> --- a/performance-test/T00-new.sh
> +++ b/performance-test/T00-new.sh
> @@ -26,6 +26,16 @@ perl -nle 'rename "$_.renamed", $_' $manifest
>  
>  time_run "new ($count mv back)" 'notmuch new'
>  
> +tar --create --file backup.tar --files-from=$manifest

xargs tar cf backup.tar < $manifest

> +perl -nle 'unlink $_; unlink $_.copy' $manifest
> +
> +time_run "new ($count rm)" 'notmuch new'
> +
> +tar --extract --file backup.tar

tar xf backup.tar

> +
> +time_run "new ($count restore)" 'notmuch new'
> +
>  perl -nle 'link $_, "$_.copy"' $manifest
>  
>  time_run "new ($count cp)" 'notmuch new'
> -- 
> 2.30.2

  reply	other threads:[~2021-04-15  7:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14  2:16 Deletion speed improvements for notmuch-new David Bremner
2021-04-14  2:16 ` [PATCH 1/2] WIP: add performance test for removing files David Bremner
2021-04-15  7:36   ` Tomi Ollila [this message]
2021-04-14  2:16 ` [PATCH 2/2] WIP: replace use of queries in n_m_delete with postlist access David Bremner

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=m2k0p4yp6s.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /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).