Project

General

Profile

Feature #2236

Optimize accesslog_append_escaped

Added by crypt over 5 years ago. Updated over 5 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_accesslog
Target version:
Start date:
2010-07-12
Due date:
% Done:

100%

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 over 5 years ago

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

History

#1 Updated by stbuehler over 5 years ago

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

Applied in changeset r2747.

Also available in: Atom