GaloisInc / mime

A Haskell MIME library
Other
12 stars 11 forks source link

parseMIMEMessage is very slow #15

Open tysonzero opened 4 years ago

tysonzero commented 4 years ago

With a 400kb test email it currently takes around 45 seconds to parse.

I am currently using emailparse which is built on top of this library but has its own parser that parses the same email in under 0.1 seconds.

I was hoping to be able to drop that dependency since this library already comes with a parser, but this isn't possible with the current performance.

parthshah31 commented 3 years ago

This is kind of a pressing issue for what I'm doing as well. I'm using emailparse as well, but it's a less maintained library. Ideally, mime would be able to incorporate the parser code emailparse uses to speed up perf.