Files
mu4e/lib
Jakub Sitnicki d93b8135a6 Revert "* bugfix for issue 164"
This reverts commit c7b28419ab.

The reverted change fails to sort threads correctly when there is an
empty container, serving as a parent to orphan messages, in the thread
tree as demonstrated by the test in commit f49296759e ("tests:
threads: Test if orphan message promotes its thread").

Also, the reverted commit introduces a performance hit. The time it
takes to sort threads has increased roughly by a factor of 4.

Current state:

$ perf stat --event=task-clock --repeat=10 -- \
  mu find maildir:/INBOX -n 1 -t > /dev/null

 Performance counter stats for 'mu find maildir:/INBOX -n 1 -t' (10 runs):

       4967.692519      task-clock (msec)         #    1.000 CPUs utilized            ( +-  0.14% )

       4.969247128 seconds time elapsed                                          ( +-  0.14% )

With the reverted patch applied:

$ perf stat --event=task-clock --repeat=10 -- \
  mu find maildir:/INBOX -n 1 -t > /dev/null

 Performance counter stats for 'mu find maildir:/INBOX -n 1 -t' (10 runs):

       1231.761588      task-clock (msec)         #    0.996 CPUs utilized            ( +-  1.02% )

       1.236209133 seconds time elapsed                                          ( +-  1.08% )

The benchmark was ran on a maildir with ~16k messages:

$ mu find maildir:/INBOX | wc -l
16503
2014-07-15 07:24:56 +02:00
..
2013-07-21 14:44:44 +03:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2014-07-15 07:24:56 +02:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-12-21 10:01:04 -08:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-12-01 20:21:44 +02:00
2013-06-24 22:44:36 +03:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-04-30 21:53:16 +03:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-05-15 00:42:33 +03:00
2013-06-24 22:44:36 +03:00
2013-07-21 14:44:44 +03:00
2013-03-30 11:32:07 +02:00
2013-05-13 22:30:27 +03:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-03-30 11:32:07 +02:00
2013-12-01 20:21:44 +02:00
2013-03-30 11:32:07 +02:00