chunked encoding and performance
Will chunked encoding improve the performance of uploadin开发者_开发技巧g/downloading?
If you know the final complete size upfront, it can only be worse (compared to communicating the Content-Length in the header).
If you do not know, you have no other choice if you want to avoid collecting everything in a (potentially huge) buffer first (which would in fact degrade performance).
精彩评论