Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edpM2-0005yg-Kc for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jan 2018 03:34:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edpM2-0007GB-81 for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jan 2018 03:34:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1edpM2-0007G1-18 for pgsql-hackers@lists.postgresql.org; Tue, 23 Jan 2018 03:34:34 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1edpLy-0004kz-K6 for pgsql-hackers@postgresql.org; Tue, 23 Jan 2018 03:34:33 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 544FC5F79C; Mon, 22 Jan 2018 22:34:29 -0500 (EST) Date: Mon, 22 Jan 2018 22:34:29 -0500 From: Stephen Frost To: =?utf-8?B?0K7RgNC40Lkg0KHQvtC60L7Qu9C+0LI=?= Cc: Michael Paquier , Peter Geoghegan , Andres Freund , Tom Lane , Claudio Freire , Robert Haas , Sokolov Yura , Alvaro Herrera , Heikki Linnakangas , PostgreSQL-Dev Subject: Re: [HACKERS] Small improvement to compactify_tuples Message-ID: <20180123033429.GF2416@tamriel.snowman.net> References: <22996.1510160560@sss.pgh.pa.us> <20171128224150.syswowiaiojth7ke@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gun6oyRuMjJjvP2a" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --gun6oyRuMjJjvP2a Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * =D0=AE=D1=80=D0=B8=D0=B9 =D0=A1=D0=BE=D0=BA=D0=BE=D0=BB=D0=BE=D0=B2 (funn= y.falcon@gmail.com) wrote: > On Wed, Nov 29, 2017 at 8:00 AM, Peter Geoghegan wrote: > > On Tue, Nov 28, 2017 at 2:41 PM, Andres Freund wro= te: > >> Maybe it's a stupid question. But would we still want to have this aft= er > >> the change? These should be just specializations of the template versi= on > >> imo. >=20 > "generic" version operates on bytes, and it will be a bit hard to combine > it with > templated version. Not impossible, but it will look ugly. If that's the case then does it really make sense to make this change..? > In attach fixed qsort_template version. > And version for compactify_tuples with bucket_sort and templated qsort. While having the patch is handy, I'm not seeing any performance numbers on this version, and I imagine others watching this thread are also wondering about things like a test run that just uses the specialized qsort_itemIds() without the bucketsort. Are you planning to post some updated numbers and/or an updated test case that hopefully shows best/worst case with this change? Would be good to get that on a couple of platforms too, if possible, since we've seen that the original benchmarks weren't able to be consistently repeated across different platforms. Without someone doing that leg-work, this doesn't seem like it'll be moving forward. Marking as Waiting on Author. Thanks! Stephen --gun6oyRuMjJjvP2a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJaZq1FAAoJEO1sijiDR2RV9c0P+gLIevmNCkMzXum9x+Y/xhlu LGGDEiA/1CVlsuSYuN0SbxKb+d2rd3ZiRYpPROZSwXs7kRTT2yf+lyzWP3Y08eXu EHFlnqXhMcRsgBu39x3ZpWTVQ/gPJwDPWjvvosYBWxY4QldUSXMAC0BQfShs49hx 2L6WRHEb0aPNsaP5X29NdI9FXZCwgqgtRMPvNcBHAFV1sAk07QzG9hU5ZTmNlibB 8jr+Xuvf/J3WNgAPEp8Z0cVLRcKWwZ2LSbUt7IevJDmHUorAt7zex6cNQQjasLrM 8I0PYcsor/L8G+pf8UEP/tHAVkjGDFAyWlco3MYLXa/MTUzzq4yUfkxmRvenm4OL jwfL1F8YgXgbiOYVgnCJO+q3N+EKrrNBwPrWin/ihMHXRgIV8pOyvvJyhFeuFo/N DRJhMq0gOyC13xcQU6lQ7PSAau5Rp/gszz/mMEmPVVhdRM16M6SM9RgrLor29PhW SHDX8V5QlQi6L97mtFNTK4dWUmHMFXNLm9MpNcq5XIlnBghpXoktBk6FU1gA5X5c dXegM7XbPDmLlPswfkBAb+wY9vQ/db+HXJEj4oFT1XowJJBVtUdX55koL34HuF0/ yM8cDP1aiGC6VoFBHD37TF2qmEsPkO/pyqkpKM1F7rlvdumVlWvaiITjdMVLV8a8 IRpWiRMpONeqKmWlbs1o =WP24 -----END PGP SIGNATURE----- --gun6oyRuMjJjvP2a--