mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 00:37:34 +00:00
LibCore: Bump the CHttpJob receive buffer size from 4KB to 64KB
4KB gets pretty mmap/munmap heavy when downloading larger files, so bump this a bit to reduce time spent in memory allocation. This can be improved in various ways, but I'm not sure what the best way forward is at the moment.
This commit is contained in:
parent
77cb5594b0
commit
bcffe31d3a
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ void CHttpJob::on_socket_connected()
|
|||
}
|
||||
ASSERT(m_state == State::InBody);
|
||||
ASSERT(m_socket->can_read());
|
||||
auto payload = m_socket->receive(PAGE_SIZE);
|
||||
auto payload = m_socket->receive(64 * KB);
|
||||
if (!payload) {
|
||||
if (m_socket->eof())
|
||||
return finish_up();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue