diff options
| author | Martin Hořeňovský | 2018-07-23 20:46:36 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-07-23 20:46:42 +0200 |
| commit | c9de7dd12d2971c63f9d32ce5459eb98f2fec13d (patch) | |
| tree | 4239c63c6115128636aae777f302e1716dfb81d6 /projects/SelfTest/UsageTests/ToStringVector.tests.cpp | |
| parent | 52cbb507abdc039f9a6859781106d8855004666d (diff) | |
| download | catch3-c9de7dd12d2971c63f9d32ce5459eb98f2fec13d.tar.gz | |
Optimize SourceLineInfo::operator< with short-circuiting
In case of 2 instances of SourceLineInfo constructed in the same
file, they will have the same `file` pointer (even at O0). Thus, we
can check if they are equal before calling potentially pointless
`strcmp`.
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringVector.tests.cpp')
0 files changed, 0 insertions, 0 deletions