]> 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)
commit67246c45cdf1e4f62a642897ecbe983a448e3edd
tree2a43eade5fcfac6c4e97230bd1677fc9ad49e444
parent5c23f52166cd5e2aa348ec9006bf137fd6bea7fb
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