Commit Graph

16 Commits

Author SHA1 Message Date
hjk
aac8a2c6d4 Tests: Add a benchmark for Qt signals vs plain callback
While a plain lambda callback lacks a lot of the features of a real
Qt signal/slot connection, there are plenty situations where the
plain callback is all that's needed. Have some benchmark for more
educated guesses on timings.

Change-Id: I0c1fdfd2fd352d75c2af66fd713806bf3dd2d135
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2018-02-21 09:53:17 +00:00
Tobias Hunger
954569387c Update License according to agreement with Free Qt Foundation
* Update license information in tests directory

Change-Id: I311441dd37d053ca3175e44b284258e232ee93e0
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
2016-01-19 16:01:06 +00:00
hjk
b8a8fe34a2 Introduce a Qt-free JSON implementation
This is essentially QJson with Qt replaced by std:: features.

This is useful to have in circumstances where a Qt dependency
is undesirable, e.g. for the Qt Creator debugger protocol
implementation in our CDB extension.

Change-Id: Iec79c6b23b1e717ce1b6f4d38755287d1f479c13
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
2015-11-09 08:25:11 +00:00
hjk
d472ec9a4c remove qstringbuilder code
Now in Qt proper.
2009-05-29 11:31:53 +02:00
hjk
1b1b484184 qstringbuilder: final version to merge into Qt proper 2009-05-27 16:50:16 +02:00
hjk
273011f95f Revert "qstringbuilder: a version without QLatin1Literal"
This reverts commit 28303e861d.
2009-05-27 12:56:33 +02:00
hjk
28303e861d qstringbuilder: a version without QLatin1Literal 2009-05-27 11:46:10 +02:00
hjk
af4fcde1c2 qstringlist: polishing
Make operator% only act on types we want to handle.
Also add a benchmark for comparison with QString::reserve();
2009-05-26 15:54:22 +02:00
hjk
e1e1bfbf67 qtringbuilder: simplify by removing the QStringBuilder<QString> specialization 2009-05-26 12:47:39 +02:00
hjk
4774ba14f7 qstringbuilder: add a new benchmark using QString::arg 2009-05-26 11:03:39 +02:00
hjk
a31ce64b9c qstringbuilder: also accept QStringRef 2009-05-25 17:20:15 +02:00
hjk
eb47988f3f qstringbuilder: handle QLatin1Strings directly.
This also extends and re-organizes the benchmark a bit
2009-05-25 12:20:47 +02:00
hjk
15366dbc6f work on stringbuilder benchmark 2009-05-20 11:49:10 +02:00
hjk
2ec3334959 qstringbuilder: make it work for the char % string case 2009-05-20 10:37:41 +02:00
hjk
7c8735b771 Make QStringBuilder work with plain 'char' "chunks". 2009-04-30 10:29:48 +02:00
hjk
feb34c0e6f Introduce a new QStringBuilder helper class to speed up building strings
from smaller chunks using expression templates.

Simple test and benchmark included, the class is not yet complete.
2009-04-30 10:01:54 +02:00