3 ms·
Okay, but the question I’m asking is, why does the basic version take 60 seconds to compile? Why not 6 seconds, or 60 milliseconds? If there’s a good and insur
by iainmerrick 3y ago
Okay, but the question I’m asking is, why does the basic version take 60 seconds to compile? Why not 6 seconds, or 60 milliseconds?
If there’s a good and insurmountable reason why it must be a minute and no less, okay. But I’d be amazed if there aren’t some easy wins to be made that could speed it up by a decent amount.
That’s not worth doing just because of the silly million-element array case, of course; but if you can make that silly case faster, lots of more important use cases will get faster too.
- tialaramex 3y agoI mean, if you feel it's worth figuring this out you totally can, Rust's source code really does successfully download and just build so you can tinker with it, I patched it some weeks back to improve the diagnostics you get for type errors where e.g. you wrote 'X' (a 21-bit integer representing the Unicode Latin capital X) but you ought to have written b'X' (an 8-bit unsigned byte representing the ASCII code for X) - yes numerically those values are identical but Rust correctly does not consider that to mean they're the same type - and it was like an hour's work to build Rust and first figure out where to attempt my changes. You can submit a PR and after a robot puts it in a pile to be looked at, actual humans will ask you about your proposed change, they can ask other robots to check whether it works OK on the huge piles of real world Rust out there, and so on.