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
c51c30029d
commit
e3770969a9
2 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue