aerc/config
Tim Culverhouse 4240f1fbfd perf: reduce calls to GetUiConfig
GetUiConfig was being called many times, and came up as a high CPU user
in a cpuprofile. Every call would merge a UIConfig, which is a costly
operation. Ideally, we would only need to have a config for every
account X every directory. We also have a context for subjects. This
patch stores all FOLDER and ACCOUNT level configs and reuses those
merged objects. The SUBJECT contexts are not stored in favor of merging
on-the-go, with a TODO comment to deprecate that feature and implement a
better per-message styling option. I suspect this feature is not used
very much.

Before applying this patch with my setup, GetUiConfig is called 1159
times just to open aerc. After applying, this is reduced to 37.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-07-03 21:32:24 +02:00
..
accounts.conf Copy sent emails to the Sent folder 2019-05-15 19:41:21 -04:00
aerc.conf pgp: add customizable icons 2022-06-24 21:44:02 +02:00
bindings.go binds: fix incorrect key names for c-] and c-[ 2022-04-25 11:22:12 +02:00
bindings_test.go bindings: support more modified keys 2021-10-28 16:22:28 +02:00
binds.conf binds: Open msgs in default Postpone folder in edit-mode 2022-06-22 11:36:46 +02:00
config.go perf: reduce calls to GetUiConfig 2022-07-03 21:32:24 +02:00
default_styleset fix aerc-stylesets(7) typos 2020-12-13 10:30:56 +01:00
style.go style: add style config options for dirlist_unread and dirlist_recent 2022-04-27 09:46:06 +02:00
triggers.go index: add this-week-time-format 2021-11-06 17:34:20 +01:00