webapp: improve performance
authorHelmut Grohne <helmut@subdivi.de>
Wed, 29 Dec 2021 19:56:03 +0000 (20:56 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Wed, 29 Dec 2021 19:56:03 +0000 (20:56 +0100)
commite118de84d60e6f0d7662dcbb6aa362f452dda6ba
treecf74481b2ed70291ff3fa190cf053a0798bc51b2
parentc7615fcb537f547da3068d3e489437e70db58447
webapp: improve performance

html_response expects a str-generator, but when we call the render
method, we receive a plain str. It can be iterated - one character at a
time. That's what encode_and_buffer will do in this case. So better
stream all the time.
webapp.py