2 ms·
10x sounds great until you look at this as an absolute value. It's 10 seconds. That would be huge if it were a a runtime cost, but this is a one time cost at c
by joshka 3y ago
10x sounds great until you look at this as an absolute value. It's 10 seconds.
That would be huge if it were a a runtime cost, but this is a one time cost at compile time, and this build will be cached unless you're upgrading serde (or its dependencies). The value of that 10 seconds compared to the cost is a faustian bargain.
- Nullabillity 3y agoAnd even that 10s is assuming that you use no other proc macros that would bring in the same dependencies anyway (very unlikely).