You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BootstrapHandler.writeBootstrapPage uses (default) 8192 bytes buffer, this causes buffer flushing to occur pretty often. #2222
With UIDLs tending to be quite big for complex applications (let's say 100k-300k), the default buffer size in BootstrapHandler.writeBootstrapPage causes buffer flushes way too often, which degrades the performance.
A good question is how to determine the buffer size to use. Should it always be the same, or somehow depend on the payload size? Whatever we do should also be quantified by actual performance measurements of how big impact any change has on the total time for handling a request.
Closing as outdated: the bootstrap page is now served by IndexHtmlRequestHandler, which writes the page in one go rather than through the BootstrapHandler writer discussed here.
Activity
Legioth commentedon Aug 23, 2017
A good question is how to determine the buffer size to use. Should it always be the same, or somehow depend on the payload size? Whatever we do should also be quantified by actual performance measurements of how big impact any change has on the total time for handling a request.
fluorumlabs commentedon Aug 23, 2017
I would say it should probably be at least around the nominal bootstrap page size (which is >20k). May I suggest 131072 bytes to be on the safe side?
pleku commentedon Aug 29, 2017
Let's use the buffer size of whatever is the string length, and add a upper limit to 128k.
We can make it configurable later on.
totally-not-ai commentedon Dec 5, 2026
Closing as outdated: the bootstrap page is now served by
IndexHtmlRequestHandler, which writes the page in one go rather than through theBootstrapHandlerwriter discussed here.