[Patches] [ python-Patches-1243730 ] Big speedup in email message parsing

SourceForge.net noreply at sourceforge.net
Sun May 28 03:12:05 CEST 2006


Patches item #1243730, was opened at 2005-07-23 18:07
Message generated for change (Comment added) made by bwarsaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1243730&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Performance
>Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: L. Peter Deutsch (lpd)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: Big speedup in email message parsing

Initial Comment:
Python 2.4.1, Red Hat Linux 7.3.

Speeds up message parsing on files with large
attachments by approximately 4x, mostly by replacing
REs by direct string processing.


----------------------------------------------------------------------

>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2006-05-27 21:12

Message:
Logged In: YES 
user_id=12800

Here's a slightly better version, cleaned up for style and
applicable to Python 2.5 (which is the only place I'd feel
comfortable applying it).  I've verified that this provides
about a 3x speed up at least for some messages with really
big attachments.

----------------------------------------------------------------------

Comment By: Steve Holden (holdenweb)
Date: 2006-05-25 18:55

Message:
Logged In: YES 
user_id=88157

A first examinaation reveals no particular speedup on an
email with approximately 30 MB of attachments. Can the OP
perhaps provide some code and test data I could time to
verify the assertions of speedup? Otherwise I can't see much
point in applying the patch.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1243730&group_id=5470


More information about the Patches mailing list