1
0
mirror of https://github.com/djcb/mu.git synced 2024-07-04 08:41:11 +02:00
mu/lib/message
Dirk-Jan C. Binnema aea95b5be0 mu-server: use strings, not sexps object (optimization)
When passing messages to mu, often we got a (parsed from string)
message-sexp from the message document; then appended some more
properties ("build_message_sexp").

Instead, we can do it in terms of the strings; this is _a little_
inelegant, but also much faster; compare:

(base)
[mu4e] Found 500 matching messages; 0 hidden; search: 1298.0 ms (2.60 ms/msg); render: 642.1 ms (1.28 ms/msg)

(with temp-file optimization (earlier commit)
[mu4e] Found 500 matching messages; 0 hidden; search: 1152.7 ms (2.31 ms/msg); render: 270.1 ms (0.54 ms/msg)

(with temp file optimize _and_ the string opt (this commit)
[mu4e] Found 500 matching messages; 0 hidden; search: 266.0 ms (0.53 ms/msg); render: 199.7 ms (0.40 ms/msg)
2023-08-04 00:09:02 +03:00
..
meson.build lib/utils: update library paths 2023-07-05 23:14:34 +03:00
mu-contact.cc contact/display-name: quote "names" with '@' 2023-06-12 23:37:39 +03:00
mu-contact.hh contact: fix quoting 2023-03-14 06:18:56 +02:00
mu-document.cc mu-document: Make sexp() lazy (optimization) 2023-08-04 00:09:02 +03:00
mu-document.hh mu-server: use strings, not sexps object (optimization) 2023-08-04 00:09:02 +03:00
mu-fields.cc message: use html-to-text scraper for html parts 2023-07-25 21:26:36 +03:00
mu-fields.hh message: use html-to-text scraper for html parts 2023-07-25 21:26:36 +03:00
mu-flags.cc mu-flags: use implied unread flag 2023-01-14 20:02:05 +02:00
mu-flags.hh mu-flags: use implied unread flag 2023-01-14 20:02:05 +02:00
mu-message-file.cc update to use fmt-based apis 2023-07-05 23:10:13 +03:00
mu-message-file.hh mu-maildir: refactor some duplicate code 2022-06-04 00:41:28 +03:00
mu-message-part.cc message: allow extracting message parts to file 2023-04-06 07:19:26 +03:00
mu-message-part.hh message: allow extracting message parts to file 2023-04-06 07:19:26 +03:00
mu-message.cc message: use html-to-text scraper for html parts 2023-07-25 21:26:36 +03:00
mu-message.hh message: try to detect body text language 2023-05-11 23:23:52 +03:00
mu-mime-object.cc message: use html-to-text scraper for html parts 2023-07-25 21:26:36 +03:00
mu-mime-object.hh update to use fmt-based apis 2023-07-05 23:10:13 +03:00
mu-priority.cc message: move to lib/message, update naming 2022-03-26 17:19:10 +02:00
mu-priority.hh message: move to lib/message, update naming 2022-03-26 17:19:10 +02:00
test-mu-message.cc update to use fmt-based apis 2023-07-05 23:10:13 +03:00