Closed ksnyder closed 11 years ago
@ksnyder Nice, thanks!
Released as v0.4.1.
(Oh, also it turns out that the @buffer[0, eol] thing is actually not as expensive as I thought — ruby uses Copy-on-write for string slices by default, and we never write to the slice.)
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.