diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-01-27 12:33:46 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-01-18 16:23:56 +0100 |
commit | 755b0aa681c203e6677430180a9cc6d103650e15 (patch) | |
tree | b24b8c43a5a18dad2ba9bbbb4aa26e09ef312852 /tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt | |
parent | f2230ea1a6c83bade142eca0a696dc1e219d427f (diff) |
Turn a condition into a lambda to save needless evaluation
The public suffix list scanner's utf8encode()'s main loop always
worked out whether a character is a hex digit, even when it didn't
need to know. Package the computation in a lambda and only test it
when it is needed. Also assert non-empty input generates non-empty
output.
Change-Id: Iaf48aad382624e421cea9c9cdb8bba5fc47b1596
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Diffstat (limited to 'tests/benchmarks/widgets/graphicsview/functional/GraphicsViewBenchmark/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions