From: Tom Lane <tgl@sss.pgh.pa.us>
To: Teodor Sigaev <teodor@sigaev.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Bloom index contrib module
Date: Sat, 09 Apr 2016 12:46:38 -0400
Message-ID: <14783.1460220398@sss.pgh.pa.us> (raw)
In-Reply-To: <12656.1460217008@sss.pgh.pa.us>
References: <E1alzSB-0002uZ-42@gemulon.postgresql.org>
<12656.1460217008@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
I wrote:
> Would it be possible to dial down the amount of runtime consumed by
> the regression tests for this module?
Hmm ... "perf" says that a full 50% of the runtime of contrib/bloom's
regression test is consumed by GenericXLogFinish, and of that, the vast
majority is consumed by the extremely inefficient one-byte-at-a-time
matching in writeDelta() --- even dwarfing the "exchange two page images"
memcpy's. So there seems to be good reason to expend some
micro-optimization effort in that area. But aside from the writeDelta
problems, what in the world is the reason for the page exchange logic?
I could see copying a working image into place in the shared buffer
arena, but not saving the previous contents.
Even if these costs went to zero, though, the bloom regression tests
would still be consuming a disproportionate amount of time.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, teodor@sigaev.ru, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Bloom index contrib module
In-Reply-To: <14783.1460220398@sss.pgh.pa.us>
References: <E1alzSB-0002uZ-42@gemulon.postgresql.org> <12656.1460217008@sss.pgh.pa.us> <14783.1460220398@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox