On Jan 24, 2014, at 5:06 AM, Nick North <nort...@gmail.com> wrote:

> I'm not really expecting this problem to be the cause of the slowdown:
> the attachment needs to contain a lot of initial prefixes of the MIME
> boundary string for things to be really bad. 

This is on the reading side, where the MIME parser is looking for the boundary 
string that signals the end of the attachment part?
But the boundary string has to appear after a CRLF, so the actual sequence to 
search for starts with "\r\n--". I'd expect the slowdown to happen only if the 
data contains a lot of those sequences, not just any old hyphens.

(Also, that search is really slow enough to be noticeable?! Doesn't Erlang have 
a native string-search primitive?)

—Jens

PS: Maybe we should move this thread to the new replication mailing list :)

Reply via email to