On 5/27/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I wrote:
> > I'm off for a little visit with oprofile...
>
> It seems the answer is that fwrite() does have pretty significant
> per-call overhead, at least on Fedora Core 4.
That may be because of the locking ritual all stdio functions
like to do, even without _REENTRANT.
If you want to use fwrite as string operator, then maybe
should replace it with fwrite_unlocked?
--
marko