←back to thread

Zlib-rs is faster than C

(trifectatech.org)
341 points dochtman | 1 comments | | HN request time: 0.217s | source
Show context
kahlonel ◴[] No.43381785[source]
You mean the implementation is faster than the one in C. Because nothing is “faster than C”.
replies(11): >>43381811 #>>43381892 #>>43382209 #>>43382286 #>>43382342 #>>43382418 #>>43382745 #>>43383389 #>>43383690 #>>43384451 #>>43392826 #
1. gf000 ◴[] No.43383389[source]
Wtf, since when?

Besides the famous "C is not a low-level language" blog post.. I don't even get what you are thinking. C is not even the performance queen for large programs (the de facto standard today is C++ for good reasons), let alone for tiny ultra hot loops like codecs and stuff, which are all hand-written assembly.

It's not even hard to beat C with something like Rust or C++, because you can properly do high level optimizations as the language is expressive enough for that.