From mboxrd@z Thu Jan 1 00:00:00 1970 From: e at 80x24.org (Eric Wong) Date: Sat, 5 Jan 2019 22:02:08 +0000 Subject: [RFC] use buffered stdio (lightly tested) In-Reply-To: <20190101132303.23117-1-e@80x24.org> References: <20190101132303.23117-1-e@80x24.org> Message-ID: <20190105220208.GA17849@dcvr> In the future, I think it could be even more beneficial to buffer to zlib (if the client accepts gzip) and bypass stdio buffering in those cases. Smaller responses via gzip means less IPC overhead and wakeups for the reader. cgit is linked against zlib anyways because of git, so no extra linkage, either. But we'll need uncompressed code paths anyways for clients which don't support gzip.