mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:23:36 +03:00
Robert Iakobashvili made the 'master_buffer' get allocated first once it is
can/will be used as it then makes the common cases save 16KB of data for each easy handle that isn't used for pipelining.
This commit is contained in:
parent
6a35841b2e
commit
bc1ae973da
6 changed files with 30 additions and 8 deletions
|
|
@ -495,7 +495,7 @@ int Curl_read(struct connectdata *conn, /* connection data */
|
|||
}
|
||||
/* If we come here, it means that there is no data to read from the buffer,
|
||||
* so we read from the socket */
|
||||
bytesfromsocket = MIN(sizerequested, sizeof(conn->master_buffer));
|
||||
bytesfromsocket = MIN(sizerequested, BUFSIZE * sizeof (char));
|
||||
buffertofill = conn->master_buffer;
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue