koculu / ZoneTree

ZoneTree is a persistent, high-performance, transactional, and ACID-compliant ordered key-value database for .NET. It operates seamlessly both in-memory and on local/cloud storage, making it an ideal choice for a wide range of applications requiring efficient data management.

Home Page:https://tenray.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Enhancement] Reduce CPU cycles on Crc32Computer

koculu opened this issue · comments

What kind of enhancement you would like to have? Please describe.
This is a performance improvement request.

Describe the enhancement you'd like
Crc32Computer checks CPU architecture for every byte. Reduce the unnecessary conditional CPU instructions.

maybe we need XXHash will be better ? (in .net XXHash will come in .net 8.0 )

We use CPU instructions to calculate Crc32. I am not sure if it would make a difference.

We use CPU instructions to calculate Crc32. I am not sure if it would make a difference.

You are right, crc32 can get hardware acceleration.