|
Message-ID: <20110816130643.GQ132@brightrain.aerifal.cx> Date: Tue, 16 Aug 2011 09:06:43 -0400 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: Anti-bloat side project On Tue, Aug 16, 2011 at 03:03:50PM +0200, Moritz Wilhelmy wrote: > Hello, > > While debugging mlmmj, my mailing list manager of choice, I noted that > it calls read(2) really, really often, in order to read a single byte > out of a fd, and then read the next byte, like this: > > open("/var/spool/mlmmj/foo/control/listaddress", O_RDONLY) = 4 > read(4, "f", 1) = 1 > read(4, "o", 1) = 1 > read(4, "o", 1) = 1 > read(4, "@", 1) = 1 Is it possibly implemented as a shell script? The way the shell "read" command works, it's required to perform byte-at-a-time reads like this. Otherwise, I'm guessing someone just foolishly turned off buffering on the FILE... Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.