You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/bitdancer'closed_at=<Date2010-12-28.04:24:37.894>created_at=<Date2010-02-24.09:44:03.496>labels= ['library', 'performance']
title='email.parser.Parser is inefficient with large strings'updated_at=<Date2010-12-28.04:24:37.892>user='https://bugs.python.org/marcio'
The email parser class is slow and memory intensive when dealing with sufficiently large strings.
For example, on a Windows 7 64-bit running at 1.60 GHz the attached test file gives the following results (number of seconds it took to parse a 10 MiB string):
Original: 76.6973627829
Modified: 0.231140741387
Parser is a legacy API, and message_from_string (which uses it) is just a convenience function. If performance is an issue for your application, call feedparser directly and optimize the feeding to suit your application.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: