stdio performance in tango, stdlib, and perl

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Wed Mar 21 17:59:56 PDT 2007


Walter Bright wrote:
> 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.

Aha, so readln is better _and_ more compatible. Great!

Andrei



More information about the Digitalmars-d mailing list