Re: [PATCH] Hex-coding optimizations using SVE on ARM. - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: [PATCH] Hex-coding optimizations using SVE on ARM.
Date
Msg-id aNGsGMowsTwd5_aY@nathan
Whole thread Raw
In response to Re: [PATCH] Hex-coding optimizations using SVE on ARM.  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: [PATCH] Hex-coding optimizations using SVE on ARM.
List pgsql-hackers
On Fri, Sep 12, 2025 at 04:30:21PM -0500, Nathan Bossart wrote:
> I've attached a new version of the patch with a simd.h version of
> hex_decode().  Here are the numbers:

I was able to improve the hex_decode() implementation a bit.

                arm
    buf  | HEAD  | patch | % diff
  -------+-------+-------+--------
      16 |    11 |    11 |    0
      64 |    38 |     7 |   82
     256 |   133 |    18 |   86
    1024 |   513 |    67 |   87
    4096 |  2037 |   271 |   87
   16384 |  8326 |  1103 |   87
   65536 | 34550 |  4475 |   87

                x86
    buf  | HEAD  | patch | % diff
  -------+-------+-------+--------
      16 |     8 |     9 |  -13
      64 |    38 |     7 |   82
     256 |   121 |    24 |   80
    1024 |   457 |    91 |   80
    4096 |  1797 |   356 |   80
   16384 |  7161 |  1411 |   80
   65536 | 28620 |  5632 |   80

-- 
nathan

Attachment

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Fix wrong filename in header comment of gin_tuple.h
Next
From: Dmitry Koval
Date:
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands