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

summaryrefslogtreecommitdiffhomepage
path: root/tests/TestScripts/testConfigureDisableStringification.py
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-09-23 11:32:20 +0200
committerMartin Hořeňovský2025-09-27 13:24:44 +0200
commita2e41916f2cc0adbd27fc3d9cb89e9615fea1ad8 (patch)
treed84e247ae75e2119effb428c4a367a35c236a267 /tests/TestScripts/testConfigureDisableStringification.py
parent0e772cc0d29e7518f84a1ad11aa179167a6ab6bc (diff)
downloadcatch3-a2e41916f2cc0adbd27fc3d9cb89e9615fea1ad8.tar.gz
Keep the main Context instance as static value, not pointer
This allows us to remove the lazy init checks, improving the inlining potential when retrieving current context, thus slightly improving the performance of assertions. **runtime difference** | --------- | Debug | Release | |:----------|------:|--------:| | Slow path | 1.01 | 0.98 | | Fast path | 1.02 | 1.02 | There is small slowdown in case of Release build + assertions taking the slow path, but 1) going through the slow path is rare 2) Given the code change, I believe this to be artifact of the optimizer in the old GCC version I am using locally.
Diffstat (limited to 'tests/TestScripts/testConfigureDisableStringification.py')
0 files changed, 0 insertions, 0 deletions