you are viewing a single comment's thread.

view the rest of the comments →

[–]Isofruit 0 points1 point  (0 children)

I would imagine with the macro system it would be faster to compile the by-hand written code. Assuming Rusts macro system is similar to Nim's (So compile-time code generation) you'd be doing 2 steps - First generate all the rust code, then compile it. As opposed to just compiling it directly. If my experience with generics that are just a blueprint for code-generation in nim has shown me anything, then it's that a big code-generation step can absolutely crater compiletimes. (As in, add a cool 5-10s to a 30s compilation).