Project

General

Profile

Feature #2236

Optimize accesslog_append_escaped

Added by crypt almost 6 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 View (2.46 KB) crypt, 2010-07-12 02:55

Associated revisions

Revision 572f738f (diff)
Added by stbuehler over 5 years ago

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

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2747 152afb58-edef-0310-8abb-c4023f1b3aa9

Revision 2747 (diff)
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