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

Conversation

@dchest
Copy link
Owner

@dchest dchest commented Aug 5, 2014

More hash optimizations: use lots of variables instead of buffers to
keep state in hashblocks and inline loops.

Before:

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

Benchmarking crypto_hash (16 KiB)
11.161 MB/s
714.286 ops/s

After:

Benchmarking crypto_hash (1024 bytes)
6.510 MB/s
6666.667 ops/s

Benchmarking crypto_hash (16 KiB)
21.404 MB/s
1369.863 ops/s

More hash optimizations: use lots of variables instead of buffers to
keep state in hashblocks and inline loops.

Before:

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

 Benchmarking crypto_hash (16 KiB)
 11.161 MB/s
 714.286 ops/s

After:

 Benchmarking crypto_hash (1024 bytes)
 6.510 MB/s
 6666.667 ops/s

 Benchmarking crypto_hash (16 KiB)
 21.404 MB/s
 1369.863 ops/s
@dchest dchest merged commit fb394da into master Aug 5, 2014
@dchest dchest deleted the even-faster-hash branch August 5, 2014 10:37
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.

3 participants