mirror of https://github.com/ekimekim/wubloader
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
861a426395
Bytes returned from the database are a "memoryview" and not a bytes object. These mostly behave the same, but one difference is that Flask recognizes a bytes object as something it can send as-is, whereas a memoryview ends up using its generic "iterable" processing. This results in sending every individual byte of the result as a single part of a HTTP chunked encoding response, adding 5 bytes and a syscall to every byte returned. The solution is to explicitly convert it to bytes before returning. |
3 weeks ago | |
---|---|---|
.. | ||
thrimshim | 3 weeks ago | |
Dockerfile | 1 year ago | |
setup.py | 1 year ago |