Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOjsX-000qUb-Ov for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2024 20:13:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sOjsV-0044B2-LV for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Jul 2024 20:13:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOjsV-0044At-CL for pgsql-hackers@lists.postgresql.org; Tue, 02 Jul 2024 20:13:28 +0000 Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sOjsT-0005SU-Ke for pgsql-hackers@postgresql.org; Tue, 02 Jul 2024 20:13:26 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 97BBC11401EF; Tue, 2 Jul 2024 16:13:24 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute6.internal (MEProxy); Tue, 02 Jul 2024 16:13:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=compiler.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1719951204; x=1720037604; bh=UyJFT52O1L lXLVTEWZne44/IKcsF/fax81Qe/JmnP7Q=; b=DnZLlEjR3vmpLuEFbye90E5eR6 UIkOpznFst7RUDnWiTRhYuMUtF9saZSnhgiJJ6GHc//pqqqbEpbcrmkOfwa6TmKu We4fdiNrRQA4NmkOV9TllWK+r97d4RhASikz6IiCVSPYKl9fRw9p0Vgxc5Tq7as5 OQpoh6vm3+Qo+3cwCndoNs534QVuHD4uyHTxI/1jpt9V510cq0xQZGjjhJdVntjN FZql5KfthElPKh+eaUFgAFNU8OPsnwZ97B+GlRTnfKiH7WroNXIT8+TF+AlH81Pc 947Vqleg04eadzVSImBYJVpSW5AhaAGrjso8wDujIqHNlTtxDkkB8TmEj8Gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1719951204; x=1720037604; bh=UyJFT52O1LlXLVTEWZne44/IKcsF /fax81Qe/JmnP7Q=; b=Q4ZG4zi7abD1cCcrzAMv6z8bMYkdHxlaL+L+HOGD5Nda x+4GID0ZwfJVk8PDkN9caJBmrNZW9C62UlB0SObKWR1vs6rYO8WccLIXWRBNJ1Hg hg95OMAGxoEU6LGz8TjWxHS+U+nP2yz0fZOUxQ1Kf4U2rRWpiPpjbf5GjXvMLPU9 CYYq8fK8yqqWVzvHJq+D5o1I10kqGUbCdLnQnDhBjakoZl9hVNlqqh+6o0dNS/0p 4kw2S3rGKHZsEnVPxuTcQnmDIECilvrdXCBWrmQGmKrw6ftMTkJ6DcH+ggTkgAyT VX6euL7CIsYgmBxTkuiM67cA6r4HJZCuKvkuih3NRw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehgddugeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedflfho vghlucflrggtohgsshhonhdfuceojhhovghlsegtohhmphhilhgvrhdrohhrgheqnecugg ftrfgrthhtvghrnhephfefudegffdvtdetleeuhfffkeeltddukefhkeekieelleffhfef tdffjefgjeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhovghlsegtohhmphhilhgvrhdrohhrgh X-ME-Proxy: Feedback-ID: ic6394509:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 609B931A0065; Tue, 2 Jul 2024 16:13:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-566-g3812ddbbc-fm-20240627.001-g3812ddbb MIME-Version: 1.0 Message-Id: <98d6c120-0fb2-4354-a6c1-a42031511d67@app.fastmail.com> In-Reply-To: <33c51978-8ee8-438c-9804-e46c0ca8f3f9@app.fastmail.com> References: <44d2ffca-d560-4919-b85a-4d07060946aa@app.fastmail.com> <87zfr1e1uj.fsf@wibble.ilmari.org> <9ff90ff9-5ac1-4529-b2f4-f93b37734b9c@app.fastmail.com> <81348268-b9fd-4308-bf52-056070aa7c2a@app.fastmail.com> <8e909218-1965-4515-99e3-4bb5b625e004@app.fastmail.com> <0459ded5-6daf-4bf0-9ab0-e1f11ab15ec6@app.fastmail.com> <4e54bf4f-59fe-4c9a-b446-a2b64cbfd584@app.fastmail.com> <27d42b25-f328-4231-9db0-3811dc77c8cf@app.fastmail.com> <33c51978-8ee8-438c-9804-e46c0ca8f3f9@app.fastmail.com> Date: Tue, 02 Jul 2024 22:13:04 +0200 From: "Joel Jacobson" To: "Dean Rasheed" Cc: =?UTF-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= , pgsql-hackers Subject: Re: Optimize numeric multiplication for one and two base-NBASE digit multiplicands. Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jul 2, 2024, at 22:10, Joel Jacobson wrote: > * v4-optimize-numeric-mul_var-small-var1-arbitrary-var2.patch Instead of these boundary checks, maybe it would be cleaner to just skip this optimization if there are too few res_ndigits? /Joel