这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@dchest
Copy link
Owner

@dchest dchest commented Aug 4, 2014

Instead of encoding/decoding state twice from bytes to ints, use int
array for state, and then encode it at the end, as it's normally done.


Before:

Benchmarking crypto_hash (1024 bytes)
3.488 MB/s
3571.429 ops/s

After:

Benchmarking crypto_hash (1024 bytes)
5.425 MB/s
5555.556 ops/s

Instead of encoding/decoding state twice from bytes to ints, use int
array for state, and then encode it at the end, as it's normally done.
@dchest dchest merged commit e685a84 into master Aug 4, 2014
@dchest dchest deleted the fast-short-hash branch August 4, 2014 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants