apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49011] New: [PATCH] Speed up MD5 on Little Endian Machines
Date Sun, 28 Mar 2010 14:27:44 GMT

           Summary: [PATCH] Speed up MD5 on Little Endian Machines
           Product: APR
           Version: 1.3.9
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: stefanfuhrmann@alice-dsl.de

Created an attachment (id=25199)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25199)
MD5 speedup patch

The patch attached eliminates unnecessary
buffer copy and clean-up operations on 
little-endian machines (e.g. x86 & friends).

Calling decode() will convert the buffer
'block' from little-endian to machine-endian
in 'x'. That is only necessary on big-endian

Net runtime savings: ~15%.

If we are on a little-endian machine, we
can read directly from the input buffer.

* crypto/apr_md5.c
  (MD5Transform): optmimize by translating 
  buffers & cleaning them up on big-endian
  machines only.

patch by stefanfuhrmann < at > alice-dsl.de

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org

View raw message