This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: faster string-decoding in base64.py
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: nowonder Nosy List: nowonder, tim.peters
Priority: low Keywords: patch

Created on 2001-06-06 21:14 by nowonder, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
base64.patch nowonder, 2001-06-07 06:07
Messages (4)
msg36746 - (view) Author: Peter Schneider-Kamp (nowonder) * (Python triager) Date: 2001-06-06 21:14
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.
msg36747 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-06-06 21:25
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>.
msg36748 - (view) Author: Peter Schneider-Kamp (nowonder) * (Python triager) Date: 2001-06-07 06:07
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).
msg36749 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-06-07 18:42
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.
History
Date User Action Args
2022-04-10 16:04:06adminsetgithub: 34590
2001-06-06 21:14:08nowondercreate