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 '' }