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 {
|
fn awk_buffer {
|
||||||
awk '{
|
awk '{
|
||||||
buf = buf $0"\n"
|
buf = buf $0"\n"
|
||||||
if(length(buf) > 8192) {
|
if(length(buf) > 1400) {
|
||||||
printf "%s", buf
|
printf "%s", buf
|
||||||
buf = ""
|
buf = ""
|
||||||
}
|
}
|
||||||
|
@ -241,7 +241,6 @@ if(! ~ $#debug 0)
|
|||||||
master_template=`{get_lib_file $master_template}
|
master_template=`{get_lib_file $master_template}
|
||||||
|
|
||||||
if(~ $response_format html) {
|
if(~ $response_format html) {
|
||||||
# Is awk_buffer really useful?
|
|
||||||
template $headers $master_template | awk_buffer
|
template $headers $master_template | awk_buffer
|
||||||
echo '</body></html>'
|
echo '</body></html>'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user