user496949
user496949

Reputation: 86165

chunked encoding and performance

Will chunked encoding improve the performance of uploading/downloading?

Upvotes: 2

Views: 525

Answers (1)

Thilo
Thilo

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

Related Questions