improve performance
Brought to you by:
jstrout
Currently, switching mailboxes (especially the first time you visit one after launching the app) is much too slow.
Some profiling has shown that 94% of that time is spent in EmailMessage.=Source. In other words, it's lousy code inside RB's EmailMessage class that is much too slow (probably because it's using CountFields and NthFields — bad programmer, Mike, no biscuit!).
To fix this we'll need to make Message no longer a subclass of EmailMessage, but instead have it be a wrapper or replacement. Given that EmailMessage doesn't do much correctly or well, we might just make a replacement.