This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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: libstdc++/9876: filebuf::sputc more than 10% slower than putc


>     Yes, filebuf::sputc shall be improved: patches welcome,
>     or, otherwise, stay tuned!
>     
>     However, the funny thing of your PR is that, as a matter of
>     fact, I *cannot* reproduce the trend neither with mainline
>     (which produces better code, indeed) nor with 3.2.2!

Whoops, s/putc/putc_unlocked/ :-P

putc calls flockfile/funlockfile for each character,
streambuf::sputc does not do so and should be compared against
putc_unlocked.

Petur


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