Jump to content
  • Advertisement

Adler32 vs CRC32 for Asset ID

Recommended Posts

I think people have covered the quality of the hash and the chances of collisions. People briefly touched upon performance, but I feel that one thing was overlooked here: intrinsics. Based on posting this with the title that you use it for Asset ID it is likely you will not be hashing this at runtime, and for a pipeline this shouldn't really matter. But never-the-less, this could be of use

Most CPUs on market today (since ~2008 if I remember correctly) have intrinsics for calculating CRC32 hashes quite efficiently (SSE4.2 and up): https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=crc.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!