bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: closein, freadahead and ungetc


From: Eric Blake
Subject: Re: closein, freadahead and ungetc
Date: Mon, 10 Mar 2008 20:30:53 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Bruno Haible on 3/9/2008 5:22 PM:
| Eric Blake wrote:
|> |   - freadptr is changed to also return the size of the buffer.
|> |       extern const char * freadptr (FILE *stream, size_t *sizep);
|> |     When the return value is non-NULL, *sizep is set to the size of the
|> |     buffer whose address is the return value.
|>
|> Sounds fine to me.
|
| Here is the first part, the extended freadptr API.

FWIW, using the latest freadptr and freadseek, when compared to the prior
usage of getc, shaved off another 2% of M4 execution speed when running
autoconf on large projects like coreutils.  Thanks again for these APIs.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfV7t0ACgkQ84KuGfSFAYBlqgCgu8NqiRD9aeNUjmV/ljy60efZ
tHYAn22HuBpTFOUWgS+rLNF+Hv9EOcWa
=UZnJ
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]