From e3770969a9769c8c85e53f90db5000e67f2e57a0 Mon Sep 17 00:00:00 2001 From: Uriel Date: Fri, 9 Jan 2009 02:06:41 +0100 Subject: [PATCH] Awk_buffer does seem to improve things a bit, but changed the buffer side to an empirically determined value. --- bin/cgilib.rc | 4 ++-- bin/werc.rc | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/cgilib.rc b/bin/cgilib.rc index f8ddf90..7ef2625 100644 --- a/bin/cgilib.rc +++ b/bin/cgilib.rc @@ -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 = "" } diff --git a/bin/werc.rc b/bin/werc.rc index c7a761a..37100da 100755 --- a/bin/werc.rc +++ b/bin/werc.rc @@ -241,7 +241,6 @@ if(! ~ $#debug 0) master_template=`{get_lib_file $master_template} if(~ $response_format html) { - # Is awk_buffer really useful? template $headers $master_template | awk_buffer echo '' }