This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
gnuplot patch to speed up cygwin implementation by 2x
- From: Jim Kleckner <jek-cygwin2 at kleckner dot net>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 24 Jun 2008 09:08:20 -0700
- Subject: gnuplot patch to speed up cygwin implementation by 2x
- Reply-to: cygwin-apps at cygwin dot com
The attached patch for gnuplot speeds it up on Cygwin
by around 2.5x due to unbuffered reads for all file types.
I will submit it upstream as well.
See this link for the original discussion:
http://tinyurl.com/6c4sse
http://thread.gmane.org/gmane.comp.graphics.gnuplot.devel/2189/focus=2207
diff -r origsrc/gnuplot-4.2.3/src/plot.c src/gnuplot-4.2.3/src/plot.c
450a451,455
> #ifdef __CYGWIN__
> if (isatty(fileno(stdin))) {
> setvbuf(stdin, (char *) NULL, _IONBF, 0);
> }
> #else
455a461,462
> #endif
>