37
submitted 10 months ago by [email protected] to c/[email protected]
top 2 comments
sorted by: hot top controversial new old
[-] [email protected] 5 points 10 months ago

I don't get what the serde maintainers get by shipping precompiled binaries. Can someone enlighten me?

[-] [email protected] 15 points 10 months ago* (last edited 10 months ago)

It helps with compile time. I don't know why exactly rust macros are slow, and precompiling them helps. Unfortunately, it means distributing a binary along your build process which I personally think is not worth the few seconds of build time speedup.

Btw I do think it is a technically clever solution to improving build times. I'm convinced serde's author is trying to improve the project and this does address one of the common complaints. Clever solutions are not always the right ones though.

this post was submitted on 19 Aug 2023
37 points (100.0% liked)

Programming

13266 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS