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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Woodhouse <dwmw2@...>
Cc: Austin Zhang <austin_zhang@...>, <herbert@...>, <davem@...>, <linux-kernel@...>, <linux-crypto@...>
Date: Monday, August 4, 2008 - 9: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 CRC3..., Chris Mason, (Mon Aug 4, 9:45 am)