diff options
author | Jani Nikula <jani@nikula.org> | 2015-09-25 19:48:20 +0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2015-09-26 07:37:54 -0300 |
commit | b8f4e7da3d61733fb47111b162ccabb967a3661e (patch) | |
tree | b584cee3b89fd0cbabe0833528e4f5d99fd58c7c /notmuch-client.h | |
parent | bcb695a716bf28691ac21f6faa56e93fd3210486 (diff) |
cli: change the data structure for notmuch address deduplication
Currently we key the address hash table with the case sensitive "name
<address>". Switch to case insensitive keying with just address, and
store the case sensitive name and address in linked lists. This will
be helpful in adding support for different deduplication schemes in
the future.
There will be a slight performance penalty for the current full case
sensitive name + address deduplication, but this is simpler as a whole
when other deduplication schemes are added, and I expect the schemes
to be added to become more popular than the current default.
Aparet from the possible performance penalty, the only user visible
change should be the change in the output ordering for
--output=count. The order is not guaranteed (and is based on hash
table traversal) currently anyway, so this should be of no
consequence.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index de8a3b15..3bd2903e 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -48,6 +48,7 @@ typedef GMimeCryptoContext notmuch_crypto_context_t; #include <dirent.h> #include <errno.h> #include <signal.h> +#include <ctype.h> #include "talloc-extra.h" |