this post was submitted on 19 Aug 2023
0 points (NaN% liked)

Programming

13345 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
you are viewing a single comment's thread
view the rest of the comments
[โ€“] maynarkh@feddit.nl 0 points 1 year ago (1 children)

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

[โ€“] farcaster@beehaw.org 1 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.