Home GnuPG
Diffusion GpgOL 3f9f98dbcbf0

Improve performance of beforeRead handling

Description

Improve performance of beforeRead handling

* src/mapihelp.cpp (string_to_type): New Helper.
(mapi_get_message_type, mapi_change_message_class): Use it.
(mapi_change_message_class): Take optional type retval.
* src/inspectors.cpp, src/session-events.cpp,
src/user-events.cpp, src/message.cpp: Udpate calls.

Looking at an improvement for T3542 i measured the
time spent in beforeRead for "non crypto" mails.
With this change, which fixes a TODO the time is
halved because way fewer MAPI calls are required.

Details

Provenance
aheineckeAuthored on Dec 2 2017, 3:04 PM
Parents
rO6f7b068a4aaa: Add warnings about unsupported G Sync actions
Branches
Unknown
Tags
Unknown