Hello,

2012/2/15 Motohiro KOSAKI <kosaki.motohiro / gmail.com>:
> It doesn't. Because of, when we read whole file contents, we only need _o=
ne_ read syscall if the file is regular. In other words, current read_all()=
 suck. =A0It read a few kilo bytes and append them to a string. That's said=
 it create tons realloc.

Really?  I could be wrong, but as far as I know, IO#read first
uses fstat to estimate a buffer length enough to load the whole
content of the file.  Masaki also showed the behavior.
I think there is something wrong.

--=20
Yusuke Endoh <mame / tsg.ne.jp>