Commit graph

7718 commits

Author SHA1 Message Date
Ivailo Monev
86e075a88f use std::array<char, size> for inline JSC::Vector<T> buffers in JSC
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-16 02:59:02 +03:00
Ivailo Monev
7d7e92a256 workaround for Plasma desktop crashes on FreeBSD 13.1 (to be released)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 22:44:05 +03:00
Ivailo Monev
fc9ad91761 initialize JSC::JSFunction::m_data member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 07:05:54 +03:00
Ivailo Monev
a15a8ca63e initialize JSC::JSGlobalObject::JSGlobalObjectData::recursion member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 07:05:27 +03:00
Ivailo Monev
0efb7581f8 initialize JSC::JSGlobalObject::JSGlobalObjectData members
it's fix uninitialized variables o'clock here

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 06:57:16 +03:00
Ivailo Monev
43e71350fc initialize JSC::JSString::m_stringLength member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-15 06:52:25 +03:00
Ivailo Monev
9acdcbb107 remove code for always false conditions
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-14 03:08:52 +03:00
Ivailo Monev
dd89588aa0 remove win leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-07 21:22:54 +03:00
Ivailo Monev
60d9e91cc6 use correct type for socket descriptor in QLocalServer and QLocalSocket
there is no way for QLocalSocket::socketDescriptor() to return anything
less than zero if the type is unsinged and it is supposed to return -1 if
the socket descriptor is not valid

upstream commit:
b03fa845a7

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-07 20:24:52 +03:00
Ivailo Monev
4373a55554 stabilize QDrag test
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-03 02:01:03 +03:00
Ivailo Monev
1d5eaa1367 initialize QElapsedTimer as invalid [ci reset]
upstream commit:
3006bd2d44

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-03 01:54:32 +03:00
Ivailo Monev
9fbd2aba9e remove zlib from WANTLIB in OpenBSD package file
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-02 21:28:46 +03:00
Ivailo Monev
3e7af255a1 libdeflate port is now available on OpenBSD
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-02 21:26:09 +03:00
Ivailo Monev
29b8db6fee remove default QTableWidget reimplementation and binary compatibility bits [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-01 23:53:39 +03:00
Ivailo Monev
f01660b44c Merge branch 'master' of ssh://github.com/fluxer/katie 2022-04-26 18:41:18 +03:00
Ivailo Monev
6efd735f37 free decompressor as soon as decompression is done in QKatHandler::read()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-26 18:40:59 +03:00
Ivailo Monev
d833715118 do not duplicate the file-descriptor from QDBusUnixFileDescriptor constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-21 14:23:35 +03:00
Ivailo Monev
02df93a5bb do not duplicate the file-descriptor from QDBusUnixFileDescriptor constructor
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-21 14:14:26 +03:00
Ivailo Monev
012a2b4ab4 build fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-18 22:32:45 +03:00
Ivailo Monev
07c9afe51a drop support for using design metrics of fonts
fixes:
https://github.com/fluxer/katana/issues/29

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-18 22:29:36 +03:00
Ivailo Monev
b6b88f2b43 hint monospaced fonts horizontally and vertically
this is more of a workaround, there is a bug lurking somewhere in Konsole
probably since there are plenty of hacks related to fonts there

for reference:
https://github.com/fluxer/katana/issues/29

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-18 11:23:13 +03:00
Ivailo Monev
c3890f48f4 effectively revert 42f9fe4bdf and partially eac4764306
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-17 02:37:50 +03:00
Ivailo Monev
26d098ab90 fix QWidget::fontChange() compatibility and remove unused QWidget compatibility methods [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-16 21:53:10 +03:00
Ivailo Monev
4cacbe8960 build fix for the case when QT_NO_CONCURRENT is defined [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-11 21:52:50 +03:00
Ivailo Monev
8aab2bdd69 fix runtime warning when rotating non-mono images
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-11 20:59:16 +03:00
Ivailo Monev
d38f7d6f12 drop support for video and animation elements in svg component
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-03 00:26:03 +03:00
Ivailo Monev
06b9bf73d9 simplify color parsing in resolveColor() function
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-02 23:49:30 +03:00
Ivailo Monev
818aaff48d mark warning case in QCompleter::setMaxVisibleItems() as unlikely
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-29 01:37:27 +03:00
Ivailo Monev
fb720f570e add option to build with external xxHash
only Debian seems to enable the dispatcher and it does not
make much difference, probably because it ships 0.8.0 while
the latest (and bundled) 0.8.1 claim to provide +40% better
performance.

benchmark result with bundled xxHash:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_qcryptographichash::initTestCase()
RESULT   : tst_qcryptographichash::append():"10 (Md5)":
     2,116.24331 CPU ticks per iteration (total: 423,248,663, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha1)":
     2,327.95652 CPU ticks per iteration (total: 465,591,304, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha256)":
     4,538.58415 CPU ticks per iteration (total: 907,716,831, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha512)":
     3,545.57214 CPU ticks per iteration (total: 709,114,428, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (KAT)":
     1,055.78467 CPU ticks per iteration (total: 211,156,934, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Md5)":
     570.349390 CPU ticks per iteration (total: 114,069,878, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha1)":
     733.596795 CPU ticks per iteration (total: 146,719,359, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha256)":
     926.539030 CPU ticks per iteration (total: 185,307,806, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha512)":
     1,027.45295 CPU ticks per iteration (total: 205,490,590, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (KAT)":
     612.773505 CPU ticks per iteration (total: 122,554,701, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Md5)":
     559.535060 CPU ticks per iteration (total: 111,907,012, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha1)":
     711.052220 CPU ticks per iteration (total: 142,210,444, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha256)":
     867.967635 CPU ticks per iteration (total: 173,593,527, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha512)":
     1,059.37588 CPU ticks per iteration (total: 211,875,177, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (KAT)":
     555.657665 CPU ticks per iteration (total: 111,131,533, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Md5)":
     534.696365 CPU ticks per iteration (total: 106,939,273, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha1)":
     706.683535 CPU ticks per iteration (total: 141,336,707, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha256)":
     860.014285 CPU ticks per iteration (total: 172,002,857, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha512)":
     991.020390 CPU ticks per iteration (total: 198,204,078, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (KAT)":
     530.340170 CPU ticks per iteration (total: 106,068,034, iterations: 200000)
PASS  : tst_qcryptographichash::append()
RESULT   : tst_qcryptographichash::append_once():"Md5":
     1,461.98053 CPU ticks per iteration (total: 292,396,106, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha1":
     1,794.47376 CPU ticks per iteration (total: 358,894,752, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha256":
     4,139.07171 CPU ticks per iteration (total: 827,814,343, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha512":
     3,188.78708 CPU ticks per iteration (total: 637,757,416, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"KAT":
     632.489945 CPU ticks per iteration (total: 126,497,989, iterations: 200000)
PASS  : tst_qcryptographichash::append_once()
RESULT   : tst_qcryptographichash::statichash():"Md5":
     1,386.79875 CPU ticks per iteration (total: 277,359,750, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha1":
     1,676.14551 CPU ticks per iteration (total: 335,229,103, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha256":
     4,063.86235 CPU ticks per iteration (total: 812,772,470, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha512":
     3,084.00755 CPU ticks per iteration (total: 616,801,511, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"KAT":
     617.316465 CPU ticks per iteration (total: 123,463,293, iterations: 200000)
PASS  : tst_qcryptographichash::statichash()
PASS  : tst_qcryptographichash::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********

benchmark result with 0.8.0 and dispatcher:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_qcryptographichash::initTestCase()
RESULT   : tst_qcryptographichash::append():"10 (Md5)":
     1,968.59673 CPU ticks per iteration (total: 393,719,346, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha1)":
     2,199.79145 CPU ticks per iteration (total: 439,958,291, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha256)":
     4,222.34727 CPU ticks per iteration (total: 844,469,454, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha512)":
     3,281.03732 CPU ticks per iteration (total: 656,207,464, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (KAT)":
     994.999260 CPU ticks per iteration (total: 198,999,852, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Md5)":
     553.048500 CPU ticks per iteration (total: 110,609,700, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha1)":
     661.749995 CPU ticks per iteration (total: 132,349,999, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha256)":
     870.448295 CPU ticks per iteration (total: 174,089,659, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha512)":
     984.230055 CPU ticks per iteration (total: 196,846,011, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (KAT)":
     608.326970 CPU ticks per iteration (total: 121,665,394, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Md5)":
     525.601325 CPU ticks per iteration (total: 105,120,265, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha1)":
     678.677495 CPU ticks per iteration (total: 135,735,499, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha256)":
     825.383300 CPU ticks per iteration (total: 165,076,660, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha512)":
     1,051.29365 CPU ticks per iteration (total: 210,258,730, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (KAT)":
     594.351090 CPU ticks per iteration (total: 118,870,218, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Md5)":
     513.894990 CPU ticks per iteration (total: 102,778,998, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha1)":
     682.573800 CPU ticks per iteration (total: 136,514,760, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha256)":
     825.146855 CPU ticks per iteration (total: 165,029,371, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha512)":
     942.555945 CPU ticks per iteration (total: 188,511,189, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (KAT)":
     522.680560 CPU ticks per iteration (total: 104,536,112, iterations: 200000)
PASS  : tst_qcryptographichash::append()
RESULT   : tst_qcryptographichash::append_once():"Md5":
     1,476.90255 CPU ticks per iteration (total: 295,380,511, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha1":
     1,624.12430 CPU ticks per iteration (total: 324,824,860, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha256":
     3,839.11658 CPU ticks per iteration (total: 767,823,317, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha512":
     3,003.13306 CPU ticks per iteration (total: 600,626,612, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"KAT":
     605.017655 CPU ticks per iteration (total: 121,003,531, iterations: 200000)
PASS  : tst_qcryptographichash::append_once()
RESULT   : tst_qcryptographichash::statichash():"Md5":
     1,396.13362 CPU ticks per iteration (total: 279,226,724, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha1":
     1,541.24351 CPU ticks per iteration (total: 308,248,703, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha256":
     3,768.31778 CPU ticks per iteration (total: 753,663,556, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha512":
     2,831.25420 CPU ticks per iteration (total: 566,250,840, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"KAT":
     564.960245 CPU ticks per iteration (total: 112,992,049, iterations: 200000)
PASS  : tst_qcryptographichash::statichash()
PASS  : tst_qcryptographichash::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-28 13:52:24 +03:00
Ivailo Monev
fcd3d33e20 add test case for the previous commit
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-27 16:17:19 +03:00
Ivailo Monev
4a83c75544 prioritize file entry stat over fd stat
fixes QFile::size() for links and consequently QFile::atEnd() for
links, for QFile opened from fd or FILE* it will still report the
size of the link tho since such QFile objects do not have file entry

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-27 15:55:21 +03:00
Ivailo Monev
3c5ef26eeb fix QFile::isSequential() for links
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-27 13:47:51 +03:00
Ivailo Monev
7b497779cf remove win leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-23 12:59:44 +02:00
Ivailo Monev
fcaa2d6872 remove QUuid class leftovers
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-23 12:58:53 +02:00
Ivailo Monev
33cd1628bc update URL TLDs table data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-23 07:37:48 +02:00
Ivailo Monev
507af52fbc translations update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-23 07:36:05 +02:00
Ivailo Monev
6789138092 fix hash collision when input data has odd length for Katie's hash algorithm
benchmark result:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_qcryptographichash::initTestCase()
RESULT   : tst_qcryptographichash::append():"10 (Md5)":
     2,836.51288 CPU ticks per iteration (total: 567,302,577, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha1)":
     3,380.76135 CPU ticks per iteration (total: 676,152,271, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha256)":
     4,717.55225 CPU ticks per iteration (total: 943,510,450, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha512)":
     3,633.18907 CPU ticks per iteration (total: 726,637,814, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (KAT)":
     1,379.36299 CPU ticks per iteration (total: 275,872,598, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Md5)":
     659.939485 CPU ticks per iteration (total: 131,987,897, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha1)":
     1,114.46593 CPU ticks per iteration (total: 222,893,186, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha256)":
     951.730590 CPU ticks per iteration (total: 190,346,118, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha512)":
     1,075.35127 CPU ticks per iteration (total: 215,070,254, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (KAT)":
     737.365180 CPU ticks per iteration (total: 147,473,036, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Md5)":
     602.405905 CPU ticks per iteration (total: 120,481,181, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha1)":
     1,365.34060 CPU ticks per iteration (total: 273,068,121, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha256)":
     902.280725 CPU ticks per iteration (total: 180,456,145, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha512)":
     1,023.72560 CPU ticks per iteration (total: 204,745,120, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (KAT)":
     630.126650 CPU ticks per iteration (total: 126,025,330, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Md5)":
     583.649140 CPU ticks per iteration (total: 116,729,828, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha1)":
     1,401.99279 CPU ticks per iteration (total: 280,398,558, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha256)":
     884.796720 CPU ticks per iteration (total: 176,959,344, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha512)":
     1,006.34675 CPU ticks per iteration (total: 201,269,350, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (KAT)":
     614.444045 CPU ticks per iteration (total: 122,888,809, iterations: 200000)
PASS  : tst_qcryptographichash::append()
RESULT   : tst_qcryptographichash::append_once():"Md5":
     1,573.19717 CPU ticks per iteration (total: 314,639,435, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha1":
     2,170.39628 CPU ticks per iteration (total: 434,079,257, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha256":
     4,227.21736 CPU ticks per iteration (total: 845,443,473, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha512":
     3,182.38488 CPU ticks per iteration (total: 636,476,976, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"KAT":
     785.406275 CPU ticks per iteration (total: 157,081,255, iterations: 200000)
PASS  : tst_qcryptographichash::append_once()
RESULT   : tst_qcryptographichash::statichash():"Md5":
     1,492.78744 CPU ticks per iteration (total: 298,557,489, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha1":
     2,078.32221 CPU ticks per iteration (total: 415,664,442, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha256":
     4,147.89762 CPU ticks per iteration (total: 829,579,525, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha512":
     3,076.56835 CPU ticks per iteration (total: 615,313,671, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"KAT":
     746.683995 CPU ticks per iteration (total: 149,336,799, iterations: 200000)
PASS  : tst_qcryptographichash::statichash()
PASS  : tst_qcryptographichash::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-22 18:50:10 +02:00
Ivailo Monev
907b886d3d test QCryptographicHash collisions with short data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-22 18:30:06 +02:00
Ivailo Monev
e5792b5a36 drop QUuid class [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-22 15:30:33 +02:00
Ivailo Monev
a6eb4e3817 new qRandomUuid() function
benchmark result:
********* Start testing of tst_bench_QUuid *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_bench_QUuid::initTestCase()
RESULT   : tst_bench_QUuid::qRandomUuid_vs_createUuid():"qRandomUuid()":
     97.821250 CPU ticks per iteration (total: 19,564,250, iterations: 200000)
RESULT   : tst_bench_QUuid::qRandomUuid_vs_createUuid():"QUuid::createUuid":
     108.41198 CPU ticks per iteration (total: 21,682,396, iterations: 200000)
PASS  : tst_bench_QUuid::qRandomUuid_vs_createUuid()
RESULT   : tst_bench_QUuid::createUuid():
     57.377920 CPU ticks per iteration (total: 11,475,584, iterations: 200000)
PASS  : tst_bench_QUuid::createUuid()
RESULT   : tst_bench_QUuid::fromChar():
     81.606610 CPU ticks per iteration (total: 16,321,322, iterations: 200000)
PASS  : tst_bench_QUuid::fromChar()
RESULT   : tst_bench_QUuid::toString():
     79.527925 CPU ticks per iteration (total: 15,905,585, iterations: 200000)
PASS  : tst_bench_QUuid::toString()
RESULT   : tst_bench_QUuid::fromString():
     78.037890 CPU ticks per iteration (total: 15,607,578, iterations: 200000)
PASS  : tst_bench_QUuid::fromString()
RESULT   : tst_bench_QUuid::toByteArray():
     78.505810 CPU ticks per iteration (total: 15,701,162, iterations: 200000)
PASS  : tst_bench_QUuid::toByteArray()
RESULT   : tst_bench_QUuid::fromByteArray():
     79.680680 CPU ticks per iteration (total: 15,936,136, iterations: 200000)
PASS  : tst_bench_QUuid::fromByteArray()
RESULT   : tst_bench_QUuid::toRfc4122():
     62.749495 CPU ticks per iteration (total: 12,549,899, iterations: 200000)
PASS  : tst_bench_QUuid::toRfc4122()
RESULT   : tst_bench_QUuid::fromRfc4122():
     7.604070 CPU ticks per iteration (total: 1,520,814, iterations: 200000)
PASS  : tst_bench_QUuid::fromRfc4122()
RESULT   : tst_bench_QUuid::toDataStream():
     100.19905 CPU ticks per iteration (total: 20,039,811, iterations: 200000)
PASS  : tst_bench_QUuid::toDataStream()
RESULT   : tst_bench_QUuid::fromDataStream():
     68.303560 CPU ticks per iteration (total: 13,660,712, iterations: 200000)
PASS  : tst_bench_QUuid::fromDataStream()
RESULT   : tst_bench_QUuid::isNull():
     6.075315 CPU ticks per iteration (total: 1,215,063, iterations: 200000)
PASS  : tst_bench_QUuid::isNull()
RESULT   : tst_bench_QUuid::operatorLess():
     18.49353 CPU ticks per iteration (total: 3,698,706, iterations: 200000)
PASS  : tst_bench_QUuid::operatorLess()
RESULT   : tst_bench_QUuid::operatorMore():
     18.51902 CPU ticks per iteration (total: 3,703,804, iterations: 200000)
PASS  : tst_bench_QUuid::operatorMore()
PASS  : tst_bench_QUuid::cleanupTestCase()
Totals: 16 passed, 0 failed, 0 skipped
********* Finished testing of tst_bench_QUuid *********

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-22 11:50:06 +02:00
Ivailo Monev
43dad8b245 optimize QByteArray streaming
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-21 12:47:53 +02:00
Ivailo Monev
b4f9e7b974 update link in QUuid documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-21 12:08:50 +02:00
Ivailo Monev
0f94685c66 reset Katie's hashing algorithm state before updating it with data in QCryptographicHash::hash()
fixes crash, benchmark result:
********* Start testing of tst_qcryptographichash *********
Config: Using QTest library 4.12.0, Katie 4.12.0
PASS  : tst_qcryptographichash::initTestCase()
RESULT   : tst_qcryptographichash::append():"10 (Md5)":
     1,962.61910 CPU ticks per iteration (total: 392,523,820, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha1)":
     2,168.30099 CPU ticks per iteration (total: 433,660,199, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha256)":
     4,188.51114 CPU ticks per iteration (total: 837,702,228, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (Sha512)":
     3,362.39169 CPU ticks per iteration (total: 672,478,339, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"10 (KAT)":
     1,001.09731 CPU ticks per iteration (total: 200,219,462, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Md5)":
     570.155600 CPU ticks per iteration (total: 114,031,120, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha1)":
     685.569960 CPU ticks per iteration (total: 137,113,992, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha256)":
     868.278515 CPU ticks per iteration (total: 173,655,703, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (Sha512)":
     1,017.23586 CPU ticks per iteration (total: 203,447,172, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"100 (KAT)":
     612.449645 CPU ticks per iteration (total: 122,489,929, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Md5)":
     547.928530 CPU ticks per iteration (total: 109,585,706, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha1)":
     712.295705 CPU ticks per iteration (total: 142,459,141, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha256)":
     835.510590 CPU ticks per iteration (total: 167,102,118, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (Sha512)":
     981.335505 CPU ticks per iteration (total: 196,267,101, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"250 (KAT)":
     563.873905 CPU ticks per iteration (total: 112,774,781, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Md5)":
     537.705295 CPU ticks per iteration (total: 107,541,059, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha1)":
     707.017965 CPU ticks per iteration (total: 141,403,593, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha256)":
     825.497090 CPU ticks per iteration (total: 165,099,418, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (Sha512)":
     977.373200 CPU ticks per iteration (total: 195,474,640, iterations: 200000)
RESULT   : tst_qcryptographichash::append():"500 (KAT)":
     544.470865 CPU ticks per iteration (total: 108,894,173, iterations: 200000)
PASS  : tst_qcryptographichash::append()
RESULT   : tst_qcryptographichash::append_once():"Md5":
     1,446.76005 CPU ticks per iteration (total: 289,352,011, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha1":
     1,688.58841 CPU ticks per iteration (total: 337,717,683, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha256":
     3,855.98617 CPU ticks per iteration (total: 771,197,235, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"Sha512":
     2,929.18580 CPU ticks per iteration (total: 585,837,160, iterations: 200000)
RESULT   : tst_qcryptographichash::append_once():"KAT":
     648.980665 CPU ticks per iteration (total: 129,796,133, iterations: 200000)
PASS  : tst_qcryptographichash::append_once()
RESULT   : tst_qcryptographichash::statichash():"Md5":
     1,382.87591 CPU ticks per iteration (total: 276,575,182, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha1":
     1,614.76916 CPU ticks per iteration (total: 322,953,833, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha256":
     3,773.65425 CPU ticks per iteration (total: 754,730,850, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"Sha512":
     2,861.40618 CPU ticks per iteration (total: 572,281,237, iterations: 200000)
RESULT   : tst_qcryptographichash::statichash():"KAT":
     597.525450 CPU ticks per iteration (total: 119,505,090, iterations: 200000)
PASS  : tst_qcryptographichash::statichash()
PASS  : tst_qcryptographichash::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of tst_qcryptographichash *********

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-21 12:07:01 +02:00
Ivailo Monev
c1af7064a6 disable copying of QKatHash class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-21 08:36:13 +02:00
Ivailo Monev
d95d5a0d70 QPluginLoader documentation update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-21 08:35:58 +02:00
Ivailo Monev
0cc21a7f36 QLibrary documentaiton update
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-20 13:46:12 +02:00
Ivailo Monev
55441e32be de-duplicate QLibrary code
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-20 13:27:27 +02:00
Ivailo Monev
76e0047765 optimize QIcon::fromTheme()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-20 13:00:21 +02:00
Ivailo Monev
41eb06e397 do not create private QLibrary data pointer just to return 0 in QPluginLoader::loadHints()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-20 12:04:58 +02:00
Ivailo Monev
30eb654041 refer to QT_BUFFSIZE in QCryptographicHash documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-03-14 04:25:42 +02:00