fmt! could be optimized for some combinations of arguments #6035
Labels
A-syntaxext
Area: Syntax extensions
I-slow
Issue: Problems and improvements with respect to performance of generated code.
There are at least two cases where
fmt!
could perform an early optimization:fmt!("...")
could expand to the same code as an~"..."
string literal.fmt!("%s", s)
could expand tos
Both optimizations seem unnecessary on their own (why call
fmt!
at all?), but might be useful considering that certain core macros usefmt!
internally.The text was updated successfully, but these errors were encountered: