[Patches] [ python-Patches-463421 ] speed up md5 module with real memcpy/set

noreply@sourceforge.net noreply@sourceforge.net
Sun, 23 Sep 2001 14:53:21 -0700


Patches item #463421, was opened at 2001-09-20 17:24
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=463421&group_id=5470

Category: Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Mueller (donut)
>Assigned to: Martin v. Löwis (loewis)
Summary: speed up md5 module with real memcpy/set

Initial Comment:
Modules/md5c.c has its own for loop implementation of
memcpy and memset, even with a note that they should
be replaced with the real thing if possible.

So, this patch just does it.  It doesn't use autoconf
checks for them since they seem to be used all over
the existing code with no such checks so I guess
we assume they exist.

(some quick tests show about a 12% speedup from this change)


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

>Comment By: Martin v. Löwis (loewis)
Date: 2001-09-23 14:53

Message:
Logged In: YES 
user_id=21627

The patch looks good to me.


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

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