ilcylic has asked for the wisdom of the Perl Monks concerning the following question:

I hope this is the right place to post this, if not, I apologize.

I'm working on a mail system, and it needs to be able to handle MIME encoded stuff. What I'm wondering is if I need to determine if a given message has MIME data in it, and call the MIME::Parser routine on it if it does, and Mail::Internet on it if it doesn't. I know MIME inherits from Mail, but I'm not sure if there's a performance hit for using the MIME routines when I could be using the Mail stuff instead. Then again, figuring out if the mail message has MIME stuff in it could take longer than just calling the MIME routine on it in the first place. I'm (hopefully) writing towards the best scalability I can get, so speed is an issue.

Thanks for your help.

-il cylic

Replies are listed 'Best First'.
Re: Mailtools vs: MIME::tools
by ilcylic (Scribe) on Apr 03, 2002 at 17:27 UTC
    Alternatively, if someone can suggest a good way to test the speed of a set of operations under perl, I could make some sort of program which did "a lot" (where a lot is defined as "enough to get numbers big enough on the clock to try and make a descision by them") of both types of operations, on the same dataset, over and over, to see if one method is appreciably faster.

    But I don't know how to do that either. Thanks for your help.

    -il cylic