[Svn] [roundcube/roundcubemail] 70a823: mailbox/listing: Make server response for large ma...

GitHub noreply at github.com
Sun Apr 10 10:41:53 CEST 2016


  Branch: refs/heads/master
  Home:   https://github.com/roundcube/roundcubemail
  Commit: 70a8236cd5db7f1dee55dc9da8ee7bc49a1bf813
      https://github.com/roundcube/roundcubemail/commit/70a8236cd5db7f1dee55dc9da8ee7bc49a1bf813
  Author: Bostjan Skufca <bostjan at a2o.si>
  Date:   2016-04-09 (Sat, 09 Apr 2016)

  Changed paths:
    M program/lib/Roundcube/rcube_result_thread.php

  Log Message:
  -----------
  mailbox/listing: Make server response for large mailbox listing faster when using threaded view

Symptom
=======
When using roundcube with mailboxes with over 60k messages, list
view was way faster than viewing in threaded view.

Mailbox index view timing:    ~360 ms
Mailbox threaded view timing: ~800 ms

Resolution
==========
Use native PHP array manipulation functions instead of rolling custom
string data reversal implementation using strpos() and substr() in a
'while' loop.

This optimization is already present in index view handler, but was missing
from threaded view.

Results after optimization
==========================
Both average out around ~360 ms response time.


  Commit: 463d07824e66273d6233f0f8fac8095aed32c28e
      https://github.com/roundcube/roundcubemail/commit/463d07824e66273d6233f0f8fac8095aed32c28e
  Author: Aleksander Machniak <alec at alec.pl>
  Date:   2016-04-10 (Sun, 10 Apr 2016)

  Changed paths:
    M program/lib/Roundcube/rcube_result_thread.php

  Log Message:
  -----------
  Merge pull request #5194 from bostjan/optimization/make-thread-listing-faster

Make rcube_result_thread::revert() faster


Compare: https://github.com/roundcube/roundcubemail/compare/4fdcd8c9d166...463d07824e66


More information about the svn mailing list