mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
59b5961a6c
Summary: Previously we would unconditionally issue a SELECT when openBox was called. Now we check if the currently open box is the one we want first and return immediately if it is, avoiding the unnecessary SELECT (which can be quite expensive on large folders like INBOX). We were also calling closeBox after iterating all the messages in a thread to mark them as read/unread. This was unnecessary and was causing extra SELECTs to be issued. Now we don't! This diff is a 5x speedup over the old behavior when marking lots of threads in the same folder as read all at once. Test Plan: Run locally, measure perf with log statements Reviewers: evan, juan Reviewed By: evan, juan Differential Revision: https://phab.nylas.com/D3654 |
||
---|---|---|
.. | ||
images | ||
spec | ||
src | ||
stylesheets | ||
main.es6 | ||
package.json |