Skip to content

b3sum: Fastest possible file read using io_uring, faster than cat to /dev/null

1f604.blogspot.com
3 pointsx1f6042 comments
On HN

Comments

Fastest

Should be "Fastest on my machine" (where file hashing is IO-bound rather than CPU-bound)

faster than cat to /dev/null

Should be "slightly faster than cat to /dev/null"

Not sure whether to include the "25% faster than the official Rust implementation" part in the title...not really sure what people are interested in. I thought it was more interesting that it was faster than cat to /dev/null.

Anyway, seems like nobody is really interested in this.

I am using the C version of Blake3 after I decided some time ago to rewrite a prototype application from Rust to C and this is indeed very interesting for me. Some uses of this application would benefit from O_DIRECT in the way described in the article.

I'm going to try this out this weekend.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.