←back to thread

Zlib-rs is faster than C

(trifectatech.org)
341 points dochtman | 1 comments | | HN request time: 0.354s | source
Show context
1vuio0pswjnm7 ◴[] No.43384809[source]
Which library compiles faster.

Which library has fewer dependencies.

Is each library the same size. Which one is smaller.

replies(3): >>43386695 #>>43391462 #>>43398856 #
1. 1vuio0pswjnm7 ◴[] No.43391462[source]
One of the things I like about C is I can download a statically-compiled native GCC for use on a computer with modest amounts of memory, storage and a relatively old, slow CPU. Total size uncompressed is 242.3MB.

Using this I can statically compile a cross-compiler. Total size uncompressed 169.4MB.

I use GCC to compille zlib and a wide variety of other software. I can build an operating system from the ground up.

Perhaps someday during my lifetime it will be possible to compile programs written in Rust using inexpensive computers with modest amounts of memory, storage and relatively slow CPUs. Meanwhille, there is C.