Feature #2236

Optimize accesslog_append_escaped

Added by crypt about 4 years ago. Updated about 4 years ago.

Status:FixedStart date:2010-07-12
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:mod_accesslog
Target version:1.4.27
Missing in 1.5.x:Yes

Description

lighttpd > 1.4.20 got the new function accesslog_append_escaped() in mod_accesslog, which is fine but I think the implementation is a bit slow. I wrote a really simple patch, which uses buffer_append_string_len() and therefore memcpy() if the string does not contain any special characters (should be the normal case).

mod_accesslog.patch Magnifier (2.46 KB) crypt, 2010-07-12 02:55

Associated revisions

Revision 2747
Added by stbuehler about 4 years ago

mod_accesslog: optimize accesslog_append_escaped (fixes #2236, thx crypt)

History

#1 Updated by stbuehler about 4 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2747.

Also available in: Atom