diff options
| author | Martin Hořeňovský | 2023-12-27 16:19:49 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-12-27 16:24:33 +0100 |
| commit | 5d637d4c6b72dc21e2e198894ba0527729fba535 (patch) | |
| tree | 9c64d803f63d6ad2f18c9552af0a9521e3f1f0d8 /tests/TestScripts/testPartialTestCaseEvent.py | |
| parent | cd3c7ebe873c3da91ce57c6b2221ba95ee7f93e6 (diff) | |
| download | catch3-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 'tests/TestScripts/testPartialTestCaseEvent.py')
0 files changed, 0 insertions, 0 deletions