Awk_buffer does seem to improve things a bit, but changed the buffer side to an empirically determined value.

This commit is contained in:
Uriel 2009-01-09 02:06:41 +01:00
parent c51c30029d
commit e3770969a9
2 changed files with 2 additions and 3 deletions

View file

@ -39,11 +39,11 @@ fn get_post_args {
}
}
# Is this really useful?
# This seems slightly improve performance, but might depend on httpd buffering behavior.
fn awk_buffer {
awk '{
buf = buf $0"\n"
if(length(buf) > 8192) {
if(length(buf) > 1400) {
printf "%s", buf
buf = ""
}