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

Programming

13384 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 2 years ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[โ€“] maynarkh@feddit.nl 5 points 1 year ago (1 children)

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

[โ€“] farcaster 15 points 1 year ago* (last edited 1 year 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.