| Issue |
63308
|
| Summary |
clang-tidy misc-const-correctness has performance issues with std::format
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
cedric-ca
|
Hi,
We encounter performance issues with clang-tidy misc-const-correctness when we introduced std::format.
I tried LLVM 16.0.0, 16.0.3 and 16.0.6.
The file I tested has only one std::format:
const double toto = 1.0;
std::string s = std::format("text I want = {}", toto);
vs
std::string s = "text I want = " + std::to_string(toto);
[std_format_performance.txt](https://github.com/llvm/llvm-project/files/11747920/std_format_performance.txt)
[without_std_format_performance.txt](https://github.com/llvm/llvm-project/files/11747921/without_std_format_performance.txt)
Cédric
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs