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
> 

Reply via email to