This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: Improve efficiency (as measured by system calls made)
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: rittle at labs dot mot dot com
- Date: Tue, 27 Nov 2001 00:45:09 -0600 (CST)
- Subject: Re: PATCH: Improve efficiency (as measured by system calls made)
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
- References: <Pine.SOL.3.91.1011120195750.89C-100000@taarna.cygnus.com>
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