Re: [PATCH] lib/notmuch_database_reopen: reload some database metada

Subject:Re: [PATCH] lib/notmuch_database_reopen: reload some database metada

Date:Sun, 16 May 2021 08:11:11 -0300

To:Michael J Gruber ,notmuch@notmuchmail.org

Cc:

From:David Bremner


Michael J Gruber <git@grubix.eu> writes:

> Out of curiosity:
>
> What does reopening gain compared to a full close/open cycle?
>
> Michael

It's a fair question.  Reopen does not require the extra arguments for
configuration that notmuch_database_open_with_config takes, so it can be
used in places where those arguments are not available.  In the
read-only => read-only case there is also a performance advantage, but
that might not be relevant anymore now that we are doing several
database reads.

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: