This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: PATCH: Improve efficiency (as measured by system calls made)


I wrote:

[...reference to Scott's original test case and his patch...]
> 1999-12-21  Benjamin Kosnik  <bkoz@kcygnus.com>
>
>        * bits/std_fstream.h (sync): Move _M_file->sync() to
>        _M_really_overflow().
[...]

I have a patch that basically undoes the above.  But I don't like it
yet since it still produces 25 write system calls in place of 1 or 2
for the test case I posted to reraise this topic.  Still beats the
1900 system calls to be sure, but I will go back to the drawing board
with more test cases in hand.  Thanks Benjamin for remembering Scott's
case that motivated the current sync() calling pattern.

Regards,
Loren
-- 
Loren J. Rittle
Senior Staff Software Engineer, Distributed Object Technology Lab
Networks and Infrastructure Research Lab (IL02/2240), Motorola Labs
rittle@rsch.comm.mot.com, KeyID: 2048/ADCE34A5, FDC0292446937F2A240BC07D42763672


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