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 3e99d92b05
commit 09575c869f
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 = ""
}

View File

@ -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 '</body></html>'
}