This is the mail archive of the cygwin@sources.redhat.com 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]

Re: printf is faster when piped through tee


Chris Faylor wrote:
> On Sat, Sep 02, 2000 at 04:11:08PM +0200, Jonas Jensen wrote:
> >Something's wrong with the performance of printf. When compiling with
> >gcc, printf executes much slower than with Microsoft's "cl". The funny
> >thing is that when I pipe those programs through "tee", they're both
> >(equally) fast.
>
> Thanks for the first part of your report.  I'm awaiting your analysis of
> why this is the case.

I have no idea! AFAICS, tee and cat (which work properly) use write() for
outputting, but this function has the same problem when I call
it. -mno-cygwin makes that problem go away.

Did you do this on purpose or something? It seems a bit weird that a write
takes _excactly_ 1/100th of a second, both on my GeForce-powered desktop
comp. and my weak laptop...

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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