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 1tVxED-00Cwbv-AD for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2025 18:25:57 +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 1tVxEC-0065ye-A3 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2025 18:25:55 +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 1tVxEC-0065yV-16 for pgsql-hackers@lists.postgresql.org; Thu, 09 Jan 2025 18:25:55 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tVxE9-000kTp-2T for pgsql-hackers@postgresql.org; Thu, 09 Jan 2025 18:25:54 +0000 Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-844e9b8b0b9so84282739f.0 for ; Thu, 09 Jan 2025 10:25:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736447153; x=1737051953; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jPZJvOhCZ/6syKj7Q5rKYTC/EJXGTRQK0CNzrQAvssg=; b=HdIYUQDVLFOQzepBoQaRLjnl4f4kF0CgDpomQzSdF5AF9HtHGTYYCYyKVHDzCicBKo WQqK7fnr6dEw0uutQhKpPOvhl8p34I0xxS5LoYuNobJz4cdOFpbOsmuciZ7eYzTCgYg2 +ojoJ2QxshnRKw8Y5qwSKSFnwhhcPn24PVx6znATyDARTXeXBG8SsKYjElCQoH03iIuE tsypw29ZUFya9/RrinXv/+X3225i7wsnTfS6C1oOO19w+yC/33rl+YavX7I2aQZTQQJN CZf+sm+Ojqcrkm1mVskjomRCCRcSvKt3XAaBr/874/U0PVdwt3A6XeZ/yQxlPfjDPY2u ks9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736447153; x=1737051953; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jPZJvOhCZ/6syKj7Q5rKYTC/EJXGTRQK0CNzrQAvssg=; b=a+r8ychLgQtXLCUyY6uW8z+HlWC9P2Khf1sXvtHL/Ahhr6jyxhBy9zKculHPKAQFo5 TpDcE++rWQFNVbmOoXRPSZBP9kWW33IP75418B9C4CSAfgzTific7DEd4p6EemaP8Bf+ mDsTl3C8G8IbOwcqIvyChP4UdAeKmeW9ZEeAKZwZSpeIGipbQr2RKH9lHUVSrD4I2V34 gQdIHmh2xc4y3WNQHST69SF8iJJDf7GWxW6Qyx8NiHmRPERytKHKO2hqlVVYr0Njb+LI yZYUhgBWpxYy2qTOKHOcc4U/wraHxWJEyenm1MpvCT73nPVUvRMYhpU2qsj5aVBGwGJh ygow== X-Gm-Message-State: AOJu0YySf5U/5XErXyuiaVqSmMmnqrronANxb/8beLpkGSiysFOSOQ6e fZcj8nEmUImmZ2Pzgek7NufNuWI4e5ot6mbw2sHsKDhRnO4z4eI+ X-Gm-Gg: ASbGnctph2ANMB4poymL5rGIK5mB6ydEVeWn/V33hpQTQFLbAQqajJNdadbm187TzgP 0thkPqF3eGsNYNUjUngpfG1i6PL+DWbEeJcUhdjvz0CdbFUyyHBffXBJDJmWujRuzSVIzheEyuz YeWAINqDV6ExTu61JQq1rZPbzmUOX3yxiAucZlp796KWhkWmIOF6Kbmx41mtYnnZ9OqeFVjcy/h ZeF82frhaBcu634L7vZz6o/RPM0cMCRcHC/SgMraKUECVIqCY/ZBoADdxOk5KUcoUvynK8XZe/P CSPDeg+NZfRPNEL/BkKlydOOQk+O2k3BgW2m+bkNkBfbTtg= X-Google-Smtp-Source: AGHT+IGRBEPR2/EOpBD7Jx8r8vdVSBml7QZjtt5RH1vA0JN09h9EswaqvMg43RjU+p1I093D5NQt1A== X-Received: by 2002:a05:6e02:1d8b:b0:3a7:e01b:6410 with SMTP id e9e14a558f8ab-3ce3a938943mr64002225ab.18.1736447153228; Thu, 09 Jan 2025 10:25:53 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4ea1b613012sm448308173.58.2025.01.09.10.25.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2025 10:25:52 -0800 (PST) Date: Thu, 9 Jan 2025 12:25:51 -0600 From: Nathan Bossart To: "Devanga.Susmitha@fujitsu.com" Cc: "pgsql-hackers@postgresql.org" , "Chiranmoy.Bhattacharya@fujitsu.com" , "Ragesh.Hajela@fujitsu.com" Subject: Re: [PATCH] Hex-coding optimizations using SVE on ARM. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jan 09, 2025 at 11:22:05AM +0000, Devanga.Susmitha@fujitsu.com wrote: > This email aims to discuss the contribution of optimized hex_encode and > hex_decode functions for ARM (aarch64) machines. These functions are > widely used for encoding and decoding binary data in the bytea data type. Thank you for sharing this work! I'm not able to review this in depth at the moment, but I am curious if you considered trying to enable auto-vectorization on the code or using the higher-level SIMD support in src/include/port/simd.h. Those may not show as impressive of gains as your patch, but they would likely require much less code and apply to a wider set of architectures. -- nathan