[New-bugs-announce] [issue5803] email/quoprimime: encode and decode are very slow on large messages

Dave Baggett report at bugs.python.org
Mon Apr 20 21:01:31 CEST 2009


New submission from Dave Baggett <jython at baggett.org>:

The implementation of encode and decode are slow, and scale nonlinearly
in the size of the message to be encoded/decoded.

 A simple fix is to use an array.array('c') and append to it, rather
than using string concatenation. This change makes the code more than an
order of magnitude faster.

----------
components: Library (Lib)
messages: 86203
nosy: dmbaggett
severity: normal
status: open
title: email/quoprimime: encode and decode are very slow on large messages
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5803>
_______________________________________


More information about the New-bugs-announce mailing list