]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
According to my testing, one special case of 'log_xlate_error', i.e. EES_INCOMPLETE_CHAR,
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 6 Jan 2013 19:48:40 +0000 (19:48 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 6 Jan 2013 19:48:40 +0000 (19:48 +0000)
commitc6b9f6e2aeeea6f386b2141a4c709abba77bf7b6
treefa839fd90230271c395358704ac866965e69576c
parent3dde13d7a62ce6c00c822f9989113a1aa61be34a
According to my testing, one special case of 'log_xlate_error', i.e. EES_INCOMPLETE_CHAR,
 is 13x (!!!) faster with the use 'ap_bin2hex' instead of apr_snprintf(..., "%02X" + srlen for each character.

Output is *not* exactly the same. It was uppercase, now it is lowercase.
It is just for logging, so I don't think it is an issue.
Should it be, a call to ap_strtoupper can be added.

So sad it is just for logging in case of error... no real speedup to be expected in real life .

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