]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
According top my testing 'socache_mc_id2key' is 6x faster with the use 'ap_bin2hex...
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 6 Jan 2013 17:52:43 +0000 (17:52 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 6 Jan 2013 17:52:43 +0000 (17:52 +0000)
commit24eb8dd882e89f959eda5374da9fc8e0cd52b3d0
tree2a43eade5fcfac6c4e97230bd1677fc9ad49e444
parent30a9f1f68ac10a96c03821b7465d6326d6b50bae
According top my testing 'socache_mc_id2key' is 6x faster with the use 'ap_bin2hex' instead of
apr_snprintf(..., "%02X" for each character.
Output is *not* exactly the same. It was uppercase, now it is lowercase.

According to my understanding, this is not an issue.
Should it be, a call to ap_str_toupper should be added.

The speedup would be less, but still significant.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1429561 13f79535-47bb-0310-9956-ffa450edef68
modules/cache/mod_socache_memcache.c