From: David Bremner <david@tethera.net>
To: Vincent Breitmoser <look@my.amazin.horse>
Cc: notmuch@notmuchmail.org
Subject: Re: [PATCH 1/2] completion: more complete completion for zsh.
Date: Mon, 17 Sep 2018 09:49:38 -0300 [thread overview]
Message-ID: <871s9si90d.fsf@tethera.net> (raw)
In-Reply-To: <F4VXM8P4VO.2473IRD9SGOSB@my.amazin.horse>
Vincent Breitmoser <look@my.amazin.horse> writes:
> Ah, that's a bit annoying.
>
> What we could do is just stupidly load all addresses and work from there? On my
> machine, `notmuch address --deduplicate=address --output=address '*'` takes 0.25
> seconds for a result set of 5500 addresses.
>
Here it's 1.9s for 30k addresses
> Could also put that result set in the zsh completion cache, for slightly less
> live but immediate results on repeated calls. Is there a simple way to figure
> out on the notmuch cli if a result we received is still fresh?
notmuch count --lastmod
gives you the UUID (basically epoch) and lastmod count of the
database. That can be optimized by specifying a non-existent search
term, e.g. for me
% notmuch count --lastmod to:grendel
is quite a bit faster than
% notmuch count --lastmod
next prev parent reply other threads:[~2018-09-17 12:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-16 22:29 [PATCH 1/2] completion: more complete completion for zsh Vincent Breitmoser
2018-09-16 22:29 ` [PATCH 2/2] debian: update zsh completion installation Vincent Breitmoser
2018-09-17 12:01 ` [PATCH 1/2] completion: more complete completion for zsh David Bremner
2018-09-17 12:15 ` Vincent Breitmoser
2018-09-17 12:49 ` David Bremner [this message]
2018-09-17 21:08 ` [PATCH] completion: load all addresses and cache in _email-notmuch Vincent Breitmoser
2018-09-21 0:08 ` [PATCH] try regexp searching for completion David Bremner
2018-09-17 21:12 ` forgot amending the commit :) Vincent Breitmoser
2018-09-17 21:12 ` [PATCH] completion: load all addresses and cache in _email-notmuch Vincent Breitmoser
2018-09-18 11:19 ` zsh completion finalized and squashed Vincent Breitmoser
2018-09-18 11:19 ` [PATCH 1/2] completion: more complete completion for zsh Vincent Breitmoser
2018-10-03 0:40 ` David Bremner
2018-09-18 11:19 ` [PATCH 2/2] debian: update zsh completion installation Vincent Breitmoser
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=871s9si90d.fsf@tethera.net \
--to=david@tethera.net \
--cc=look@my.amazin.horse \
--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).