2

Will chunked encoding improve the performance of uploading/downloading?

1 Answer 1

4

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).

1
  • I didn't read your answer carefully enough. I'm wrong. I deleted my comment. Commented Jul 24, 2016 at 13:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.