ReadFile speedup

Hannu Kotipalo hannu.kotipalo at iki.fi
Thu Nov 14 14:59:03 CST 2002


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

Alexandre Julliard kirjoitti Keskiviikko 13. Marraskuuta 2002 02:00:
> Eric Pouech <eric.pouech at wanadoo.fr> writes:
> > just a dumb question: shouldn't we better (for synchronous unix reads)
> > convert the fd into a FILE* (cache those FILEs for a few streams, or all
> > of them ?) and let libc do the buffering on file reading/writing ?
>
> This won't work because a FILE* is process-local, while a handle can
> be shared across processes. Of course there is the same problem with
> doing the buffering ourselves in the client, so Hannu's solution won't
> work reliably either. To be reliable the buffering would have to be
> done in the server, but there's obviously no point in doing that.

Technically, it might be a problem. Practicaly, there are propably no 
application that would suffer from it. But you are right, this is not a first 
priority problem.

Hannu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE91A6euA3ghgc3fUsRAihGAKDiDsn+uSXallhj9bdL2ATsnb0mJACgxzvN
v+y4C3thdFnqSdQLFzr6K8g=
=gRmr
-----END PGP SIGNATURE-----




More information about the wine-devel mailing list