summaryrefslogtreecommitdiffstats
path: root/examples/qtconcurrent/runfunction
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-07-11 14:32:51 +0200
committerMarc Mutz <[email protected]>2025-07-11 15:02:52 +0000
commit54204fc7943ef91aa9b665b1287b870680697db4 (patch)
tree0ca4dcac1dcd41a385c8114af29d89c43a5f0d98 /examples/qtconcurrent/runfunction
parent20364bb611116dd918c0f5259184e9b37ddd1e71 (diff)
tst_QTextStream: reduce the runtime of pos3LargeFile()HEADdev
This test function exhibits quadratic behavior in the size of the test file, and takes 5min on my laptop to execute for the 50KiB file, pointlessly spinning the CPU while not testing anything (the pos() result is not even checked). Save some CO2 by reducing the test file size to 5KiB. This reduces the run time on my machine to 1s (from 5min!) and should make the test run fast enough for emulated platforms, too, so remove the QSKIP. As a drive-by, fix grammar in the code comment, and spacing around operators. Amends the start of the public history for the problem itself and 71bd06d516a2410ae0ea698e79dcb94aba9bc5b4 for the QSKIP. Pick-to: 6.10 6.9 6.8 6.5 5.15 Fixes: QTBUG-138428 Task-number: QTBUG-138435 Change-Id: Iea49f5ba41aea1c372a9dd9b5472d7205f492b99 Reviewed-by: Thiago Macieira <[email protected]>
Diffstat (limited to 'examples/qtconcurrent/runfunction')
0 files changed, 0 insertions, 0 deletions