#3905: very slow IMAP search
---------------------+---------------------
Reporter: jeffpc | Owner: brendan
Type: defect | Status: new
Priority: major | Milestone:
Component: IMAP | Version: 1.7.1
Resolution: | Keywords:
---------------------+---------------------
Comment (by Kevin McCarthy <kevin@…>):
In [changeset:"ebb93147aec72bb376aa883d2aeb444be3f63cf6"
6899:ebb93147aec7]:
{{{
#!CommitTicketReference repository=""
revision="ebb93147aec72bb376aa883d2aeb444be3f63cf6"
Convert HASH to be indexable by unsigned int. (see #3905)
Convert the HASH to be usable for either string or unsigned int keys,
so that a uid hash can be added for imap.
To keep hash-usage code disruption to a minimum, this introduces new
create/insert/find/delete functions for the int hash, but keeps the
old function names for string keys.
This implementation makes the key a union. It may have been a better
idea to introduce a whole new structure, but this way allows minimum
changes to and maximum reuse of the existing hash code.
}}}
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3905#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent