Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aow3K-00053p-0h for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Apr 2016 16:48:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aow3J-0003lQ-DY for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Apr 2016 16:48:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aow1y-0001xi-J5 for pgsql-hackers@postgresql.org; Sat, 09 Apr 2016 16:46:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aow1v-0006Wx-Ue for pgsql-hackers@postgresql.org; Sat, 09 Apr 2016 16:46:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u39GkcvB014784; Sat, 9 Apr 2016 12:46:38 -0400 From: Tom Lane To: Teodor Sigaev cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Bloom index contrib module In-reply-to: <12656.1460217008@sss.pgh.pa.us> References: <12656.1460217008@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Sat, 09 Apr 2016 11:50:08 -0400" Date: Sat, 09 Apr 2016 12:46:38 -0400 Message-ID: <14783.1460220398@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org 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