ConradIrwin/em-imap — pull request #10 by ksnyder (2013-06-04 17:56:35+00:00)
Title: Improve string handling when receiving data

This change reduced fetching a 24Mb email from Gmail from about 10 minutes to 4 seconds. There may be further optimizations in this method, such as this loop:

while eol && @buffer...

But we're not seeing literals coming with the chunks on large emails.