Zlib-rs is faster than C
trifectatech.org
Zlib-rs is faster than C
1–10 of 492 posts
Re: Zlib-rs is faster than C
#2Re: Zlib-rs is faster than C
#3It's barely faster. I would say it's more accurate to say it's as fast as C, which is still a great achievement.
Re: Zlib-rs is faster than C
#4Perhaps it is faster than already-existing implementations, sure, but not "faster than C", and it is odd to make such claims.
Re: Zlib-rs is faster than C
#5It's barely faster. I would say it's more accurate to say it's as fast as C, which is still a great achievement.
But it is faster. The closer to theoretical maximum the smaller the gains become.
Re: Zlib-rs is faster than C
#6It's barely faster. I would say it's more accurate to say it's as fast as C, which is still a great achievement.
Also I'm pretty sure that the C implementation had more man hours put into it than the Rust one.
Re: Zlib-rs is faster than C
#7Re: Zlib-rs is faster than C
#8It's barely faster. I would say it's more accurate to say it's as fast as C, which is still a great achievement.
I think there's lots of value in wrapping a raw/unsafe implementation with a rust API, but that's not quite what most people think of when writing code "in rust".
Re: Zlib-rs is faster than C
#9"faster than C" almost always boils down to different designs, implementations, algorithms, etc. Perhaps it is faster than already-existing implementations, sure, but not "faster than C", and it is odd to make such claims.
Typical realworld C code uses \0 terminated strings and strlen() with O(len^2) complexity.
Re: Zlib-rs is faster than C
#10You mean the implementation is faster than the one in C. Because nothing is “faster than C”.