Guile Mailing List Archive

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

Re: Faster reader (Re: Startup time in guile-1.3 (II))



Jim Blandy writes:
 > Custom buffered I/O
 >      Guile has several different kinds of I/O ports. Those that talk to the
 >      outside world are implemented on top of the ubiquitous C standard I/O
 >      FILE buffered streams. This leads to a few problems:
 >         o We have to use fgets for speed, but it's difficult to handle lines
 >           containing null characters, given fgets's interface. So we use
 >           ftell to find out how much we've read with fgets. But that doesn't
 >           work on sockets. So on sockets we fall back to our old, slow
 >           routine based on getc.

Why doesn't guile use getline which is encouraged in the libc docs?

    Klaus Schilling

Guile Home | Main Index | Thread Index