[Patches] [ python-Patches-430846 ] faster string-decoding in base64.py

noreply@sourceforge.net noreply@sourceforge.net
Thu, 07 Jun 2001 16:30:11 -0700


Patches item #430846, was updated on 2001-06-06 14:14
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=430846&group_id=5470

Category: library
Group: None
>Status: Closed
Resolution: Accepted
Priority: 3
Submitted By: Peter Schneider-Kamp (nowonder)
Assigned to: Peter Schneider-Kamp (nowonder)
Summary: faster string-decoding in base64.py

Initial Comment:
This addresses bug #419390 by anthonybaxter.

Instead of wrapping a string-to-be-decoded into a
StringIO class and using base64.decode use
binascii.a2b_base64 directly.

Speedup for big files is over 10 times (on Linux x86
anyway).

If uncontroversial I'll check it in.

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

Comment By: Tim Peters (tim_one)
Date: 2001-06-07 11:42

Message:
Logged In: YES 
user_id=31435

Accepted and assigned back to Peter for checkin.  Don't see 
how this could be controversial -- it's simple and 
appropriate.

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

Comment By: Peter Schneider-Kamp (nowonder)
Date: 2001-06-06 23:07

Message:
Logged In: YES 
user_id=14463

Mhh, I did click that "Check to Upload & Attach File" thing.

No matter what, here is the new version (including your
speedup for encodestring).

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

Comment By: Tim Peters (tim_one)
Date: 2001-06-06 14:25

Message:
Logged In: YES 
user_id=31435

Umm -- there's no patch here.  If there were, I bet I would 
have changed this to Accepted, though <wink>.

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

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