Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-1644 Long delays when posting emails as PR comments
  3. SKARA-1846

Optimize the method MailmanListReader::conversations

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • libraries
    • None

      The method `MailmanListReader::conversations` caches the http response of the emails and uses the method `Mbox::splitMbox` to get the emails everytime. It is good to cache the emails when they would not be changed in the future.

      And the method `MailmanListReader::conversations` uses the method `addAll(0, ...)` to add the emails to the beginning of the list. It is good to add the emails to the end of the list so that the number of memory copy can be reduced.

      A sub-task to solve SKARA-1644.

            gli Guoxiong Li
            gli Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: