bigger buffer for better performance

This commit is contained in:
Adam D. Ruppe 2024-08-06 07:00:46 -04:00
parent c58afec041
commit 9897accfd1
1 changed files with 5 additions and 1 deletions

View File

@ -1664,8 +1664,10 @@ class HttpRequest {
return socket;
}
// stuff used by advanceConnections
SocketSet readSet;
SocketSet writeSet;
private ubyte[] reusableBuffer;
/+
Generic event loop registration:
@ -1731,7 +1733,9 @@ class HttpRequest {
if(writeSet is null)
writeSet = new SocketSet();
ubyte[2048] buffer;
if(reusableBuffer is null)
reusableBuffer = new ubyte[](32 * 1024);
ubyte[] buffer = reusableBuffer;
HttpRequest[16] removeFromPending;
size_t removeFromPendingCount = 0;