]> granicus.if.org Git - apache/commit
Reduce CPU consumption in conv_10 function, used to format "%d" by apr_*printf
authorGreg Ames <gregames@apache.org>
Tue, 24 Jul 2001 22:55:29 +0000 (22:55 +0000)
committerGreg Ames <gregames@apache.org>
Tue, 24 Jul 2001 22:55:29 +0000 (22:55 +0000)
commit9ffcdaf02b2c51d8f3e4f92402d2445699b48aa3
treec2c6f6bc6b9a6569d6a96786e91f2a89b29c5a8a
parent594feb7de5dedf4da223bca79b1fe21eea15d8a2
Reduce CPU consumption in conv_10 function, used to format "%d" by apr_*printf

This includes two changes to APR:
  * new functions apr_itoa, apr_ltoa, and apr_off_t_toa
    that provide itoa-type functionality based on pools
  * Inline code in inet_ntop4 to replace sprintf for converting
    binary IP addresses into dotted-decimal format

and two changes to Apache:
  * use the apr_itoa functions in setting the content length,
    in place of apr_psprintf
  * use the apr_itoa functions to replace frequent uses of
    'sprintf("%d",...)' in mod_log_config.

Submitted by: Brian Pane
Reviewed by:  Dean Gaudet, Greg Ames

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89686 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/loggers/mod_log_config.c
server/protocol.c