diff options
| author | Martin Hořeňovský | 2021-05-30 13:43:14 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-05-30 13:59:47 +0200 |
| commit | 8d6a1c27ef0ca492582d7ddab3898453cc48ff34 (patch) | |
| tree | 6dcf5f9f1fd9211b2fcbf21eb8ac3827e71d4c07 /tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp | |
| parent | 41ad0fda11d0898ce3aaeee9db4e7bc16eec5051 (diff) | |
| download | catch3-8d6a1c27ef0ca492582d7ddab3898453cc48ff34.tar.gz | |
Use StringRef literals where possible in XML using reporters
This let's us avoid running `strlen` at runtime to convert the
plain string literals to `StringRef`s, by guaranteeing that we
instead have the size available after compilation.
In optimized builds the performance improvement should be even
greater, as the `StringRef` UDL and the related constructor
are both `constexpr`, and thus can be baked completely during
compilation.
Diffstat (limited to 'tests/SelfTest/UsageTests/ToStringGeneral.tests.cpp')
0 files changed, 0 insertions, 0 deletions