stdio performance in tango, stdlib, and perl

Walter Bright newshound at digitalmars.com
Wed Mar 21 17:52:05 PDT 2007


Andrei Alexandrescu (See Website For Email) wrote:
> Walter Bright wrote:
>> Turning off sync is cheating - D's readln does syncing.
> 
> I don't know exactly what sync'ing does in C++, but probably it isn't 
> the locking that you are thinking of.

I think it means bringing the iostream I/O buffer in to sync with the 
stdio I/O buffer, i.e. you can mix printf and iostream output and it 
will appear in the same order the calls happen in the code.

D's readln is inherently synced in this manner.



More information about the Digitalmars-d mailing list