[ python-Bugs-1618455 ] HMAC can get a 6x performance increase easily

SourceForge.net noreply at sourceforge.net
Tue Dec 19 00:12:41 CET 2006


Bugs item #1618455, was opened at 2006-12-18 18:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1618455&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: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ben Maurer (bmaurer)
Assigned to: Nobody/Anonymous (nobody)
Summary: HMAC can get a 6x performance increase easily

Initial Comment:
The attached patch increases the performance of HMAC by a factor of 6. It does so by avoiding useing join/map in the strxor and using a lookup table. It would be faster just to do xor at the string level, but it's not clear that can be done without help from C.

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

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


More information about the Python-bugs-list mailing list