Reputation: 86165
Will chunked encoding improve the performance of uploading/downloading?
Upvotes: 2
Views: 525
Reputation: 262814
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).
Upvotes: 4