commit | 92c9d37d883eaafdbe7d9428a5de017eee9f3d2b | [log] [tgz] |
---|---|---|
author | Marc Blank <mblank@google.com> | Thu Jul 12 17:26:45 2012 -0700 |
committer | Marc Blank <mblank@google.com> | Mon Jul 16 17:44:08 2012 -0700 |
tree | 621acebdf7223159c343f38d2e4d5a9e3d6f1c1b | |
parent | bd03ac46b245e75d2e68e42a033727924762c692 [diff] |
Improve initial folder list sync * The initial folder list sync has been worst-case O(n**2); with this change it is now O(n) * Also, we only save each Mailbox once, which saves a lot of extra disk thrashing * Assume generic user-created folders hold mail; this simplifies the code greatly and solves a number of user issues. In the case that we're wrong (I've never seen it), there's really no harm done Change-Id: I20321b2708ce3e8ebbe647116a787b26d115c3bf