diff options
| author | Martin Hořeňovský | 2023-01-27 22:12:57 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-01-29 10:14:20 +0100 |
| commit | 43f02027e47310e200f20f5c3a1de6fe281e2f81 (patch) | |
| tree | d0a0f722915ee180eaed42d6d4fac553f758cee1 /tests/SelfTest/UsageTests/ToStringVector.tests.cpp | |
| parent | 906552f8c831d0dd1917484b53dd080537f19acd (diff) | |
| download | catch3-43f02027e47310e200f20f5c3a1de6fe281e2f81.tar.gz | |
Avoid allocations when looking for trackers
Now we delay allocating owning `NameAndLocation` instances until
we construct a new tracker (because a tracker's lifetime can be
significantly different from the underlying tracked-thing's name).
This saves 4239 allocations (436948 -> 432709) when running
`./tests/SelfTest -o /dev/null`, at some cost to code clarity
due to introducing a new ref type, `NameAndLocationRef`.
Diffstat (limited to 'tests/SelfTest/UsageTests/ToStringVector.tests.cpp')
0 files changed, 0 insertions, 0 deletions