Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces/catch_interfaces_testcase.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-12-27 16:19:49 +0100
committerMartin Hořeňovský2023-12-27 16:24:33 +0100
commit5d637d4c6b72dc21e2e198894ba0527729fba535 (patch)
tree9c64d803f63d6ad2f18c9552af0a9521e3f1f0d8 /src/catch2/interfaces/catch_interfaces_testcase.cpp
parentcd3c7ebe873c3da91ce57c6b2221ba95ee7f93e6 (diff)
downloadcatch3-5d637d4c6b72dc21e2e198894ba0527729fba535.tar.gz
Args and TokenStream use StringRefs instead of std::strings
Because TokenStream is copied around a lot, moving it to use `StringRef` removes _a lot_ of allocations per `Opt` in the parser. Args are not copied around much, but changing them as well makes it obvious that they do not participate in the ownership. The changes add up to removing ~180 allocations for "empty" invocation of the test binary. (`./tests/ExtraTests/NoTests --allow-running-no-tests -o /dev/null` is down to 317 allocs)
Diffstat (limited to 'src/catch2/interfaces/catch_interfaces_testcase.cpp')
0 files changed, 0 insertions, 0 deletions