diff options
author | Koni Marti <koni.marti@gmail.com> | 2023-07-14 20:37:28 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-07-16 10:12:38 +0200 |
commit | 1a067bcb339a338043abfb62e4f946787b734af7 (patch) | |
tree | 479d32dcfc3ee8d9d0021896f38d08fdd391a52b /widgets | |
parent | b08d38c1e57934fec2f244444c233a1bca58ed76 (diff) | |
download | aerc-1a067bcb339a338043abfb62e4f946787b734af7.tar.gz |
threadbuilder: store uid/thread association
Store the association between uids and threads in a map instead of just
having the threads in a slice. This simplifies the lookup of a thread
when we have an uid and we can avoid computationally expensive tree
walks.
The threadbuilder will rebuild the uids from the given thread structure.
Hence there is no need now to keep a threads slice around.
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Tested-by: inwit <inwit@sindominio.net>
Diffstat (limited to 'widgets')
0 files changed, 0 insertions, 0 deletions