Re: [PATCH] Using Intel CRC32 instruction to accelerate CRC32c algorithm by new crypto API.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Mason
Date: Monday, August 4, 2008 - 6:45 am

On Mon, 2008-08-04 at 11:45 +0100, David Woodhouse wrote:

Long term I'd like to switch btrfs to the crypto api, but right now I'm
using libcrc32c.

code wrong, but it looks like my choices are to either have a long
standing context and use locking around the digest/hash calls to protect
internal crypto state, or create a new context every time and take a
perf hit while crypto looks up the right module.

Either way it looks slower than just calling good old libcrc32c.

-chris

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Using Intel CRC32 instruction to accelerate CR ..., Chris Mason, (Mon Aug 4, 6:45 am)