This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gnuplot patch to speed up cygwin implementation by 2x


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
> 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]