Optimize Arm64 crc32 implementation in PostgreSQL - Mailing list pgsql-hackers

From Xiang Gao
Subject Optimize Arm64 crc32 implementation in PostgreSQL
Date
Msg-id DB9PR08MB69915C40B7EA107E9DFCBE46F51EA@DB9PR08MB6991.eurprd08.prod.outlook.com
Whole thread Raw
Responses Re: Optimize Arm64 crc32 implementation in PostgreSQL
List pgsql-hackers

Hi all,

 

Currently PostgreSQL has three different variants of a 32-bit CRC calculation: CRC-32C, CRC-32(Ethernet polynomial),

and a legacy CRC-32 version that uses the lookup table. Some ARMv8 (AArch64) CPUs implement the CRC32 extension which

is equivalent with CRC-32(Ethernet polynomial), so they can also benefit from hardware acceleration.

 

Can I propose a patch to optimize crc32 calculation with Arm64 specific instructions?

 

Any comments or feedback are welcome.

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: [dsm] comment typo
Next
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: [PoC] pg_upgrade: allow to upgrade publisher node