Awk_buffer does seem to improve things a bit, but changed the buffer side to an empirically determined value.
This commit is contained in:
parent
3e99d92b05
commit
09575c869f
@ -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 = ""
|
||||
}
|
||||
|
@ -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>'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user