Re: Inefficient bytea escaping? - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: Inefficient bytea escaping?
Date
Msg-id e51f66da0605270415g64a49f23ue3cf8805ba9012d8@mail.gmail.com
Whole thread Raw
In response to Re: Inefficient bytea escaping?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Inefficient bytea escaping?
List pgsql-hackers
On 5/27/06, Tom Lane <tgl@sss.pgh.pa.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


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Updatable views/with check option parsing
Next
From: Andreas Pflug
Date:
Subject: Re: XLogArchivingActive