Details
-
User Story
-
Resolution: Done
-
P2: Important
-
None
-
-
8
-
Team A Foundation Sprint 58
-
0681a2dd5a (qt/qtbase/dev) 0681a2dd5a (qt/tqtc-qtbase/dev) 0681a2dd5a (qt/tqtc-qtbase/6.4)
Description
Currently, the toString() function is called for each QCOMPARE(), regardless of whether it succeeds or not, even though the result is only needed when the comparison fails. We have tens of thousands of test cases, and the string formatting eats a significant amount of the runtime compared to the (typically trivial) cost of the comparision.
Please change QCOMPARE to only format the expressions on failure.
Attachments
Issue Links
- mentioned in
-
Page Loading...