Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJ1qP-0001wL-DS for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Jan 2023 00:34:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pJ1qO-00056x-41 for pgsql-hackers@arkaria.postgresql.org; Sat, 21 Jan 2023 00:34:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pJ1qN-00056Y-NQ for pgsql-hackers@lists.postgresql.org; Sat, 21 Jan 2023 00:34:51 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pJ1qL-0002LB-77 for pgsql-hackers@postgresql.org; Sat, 21 Jan 2023 00:34:51 +0000 Received: by mail-pj1-x102f.google.com with SMTP id z1-20020a17090a66c100b00226f05b9595so6472758pjl.0 for ; Fri, 20 Jan 2023 16:34:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=tCNoPMrd72THBUENujC+llAUkSor4XMhavTskAZavrY=; b=zcZEx8mQIFCuafEiKnJP1u1QDop7TfHWCCaDVsLaKR+DtqmKlCISoaFE/hJE7qL6mF QDtIeGDGxqGN2OKen8D6tlfaCNT1KeUwnd8eiKfxW6EHGcPAYAxJpUp00Gs57b1CdjUi moS8pN+5DdeJ3VzDVzY5O0FxfqlYouewFZxIFGr2bDO3HPlstlK4UGT+Or8mWlR2eCqE hDlRvoj+iKwYM4XD9zBEG8VB2exIwOcyK4qmyEBi3ja7XekSfX4iAytChVqSmQFd8sgV X4BmkZv+xymIUz+nYbZtpwlvANACqdiZw++X8c6k/DiMswB3eEq0BA8GbpCnjUEC2U2Y tt/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tCNoPMrd72THBUENujC+llAUkSor4XMhavTskAZavrY=; b=v8Sy6At3/avOOHnmMaG6C9gyVOonCC180XBrejDm6lYrQLT0FxPhiqcCt6QHblEB+G P18VXlPwlOur8XfpF0OS/9zFTOIYekbr0zLtZnsE/INAedYSzr1oCB0iopi7AF2Mq5I0 2ToV64DNsI7+jr3B67EYrm9kt11XOnvRylo12qHtS4kNY5YejIVFof7U0PVQHcdT9krL 6grG85LSi5xUWRdDi+QB9b2tDUg44ReRiNFh15+nDLA8zPLCjmC2XZ/BDI6WKqrEu0vB FjNvjPjFWh0t2wWQdLys1lqEOFVMsBGCr5gVNSO6Kp7R5XBbTCkOCXEPi/UITlrdXYK+ 9Hkg== X-Gm-Message-State: AFqh2kqNJFIMp4PAiQXX/MvNdxkErCYk+ITqyIu+AE3h0XOh0FwxioPI D0zkOqUTSHqPaRoPIRVTVa43AxK4+8ewNoFQ X-Google-Smtp-Source: AMrXdXu2drGUDKM97z+02WeTwzXMd1WbEXpQzH1AZ25dB3voyfj4lXiH7aj2qUQCRLateEAajGR6dw== X-Received: by 2002:a17:902:cec4:b0:195:f3d5:bead with SMTP id d4-20020a170902cec400b00195f3d5beadmr2467779plg.36.1674261285973; Fri, 20 Jan 2023 16:34:45 -0800 (PST) Received: from jeff-laptop.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id s14-20020a170902ea0e00b001926bff074fsm27428137plg.276.2023.01.20.16.34.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 16:34:45 -0800 (PST) Message-ID: <23b8e1f917739be889e320a407316832cb1bf8f1.camel@j-davis.com> Subject: Re: Rework of collation code, extensibility From: Jeff Davis To: Peter Geoghegan Cc: pgsql-hackers@postgresql.org Date: Fri, 20 Jan 2023 16:34:44 -0800 In-Reply-To: <45eb8e985d264bb7216b00d02eb28559d3d7b4bd.camel@j-davis.com> References: <34b42d5055eec98b7183f14e8db15e5f48c0d413.camel@j-davis.com> <052a5ed874d110be2f3ae28752e363306b10966d.camel@j-davis.com> <45eb8e985d264bb7216b00d02eb28559d3d7b4bd.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2023-01-20 at 12:54 -0800, Jeff Davis wrote: > Both of these are surprising, and I haven't investigated deeply yet. It's just because autoconf defaults to -O2 and meson to -O3, at least on my machine. It turns out that, at -O2, master and the refactoring branch are even; but at -O3, both get faster, and the refactoring pulls ahead by a few percentage points. At least that's what's happening for en-US-x-icu on UTF-8 with my test data set. I didn't see much of a difference in other situations, but I didn't retest those other situations this time around. We should still look into why disabling abbreviated keys improves performance in some cases. Maybe we need a GUC for that? --=20 Jeff Davis PostgreSQL Contributor Team - AWS