Seth Spitzer wrote:

> 
> If you were to delete 20 messages from a folder with 1,000 we'd 
> unassert  on every message we delete.  This would cause us to reflow 
> and scroll 20  times, which is very expensive.
> 
> My fix is to call beginBatch() when we call delete with more than <n> 
> messages, and then when the delete is complete, call endBatch().
> 
> (<n> is not determined yet.  we might have to think about computing it 
> based on the number of messages to delete and the number of messages 
> in the folder.) 

Awesome. One thing, though, I think the number of messages in the folder 
is not as important as the number of messages on screen, since it's the 
messages on screen that reflow. But I think <n> could be as small as 2 
or 3. We'll have to see.

- David



Reply via email to