Go to file
Robin Burchell 8060dd3c42 Add a string hash implementation similar to the one in Java.
This uses a similar runtime to the approach of sampling part of the string, with
the benefit that it doesn't reduce the sampling to subsections of the string.

Ironically, Java used to only sample parts of the string as well, but found that
it produced too many collisions with certain string types, so they moved to use
this method.

RESULT : tst_QHash::qhash_qt4():
     0.0537 msecs per iteration (total: 110, iterations: 2048)
PASS   : tst_QHash::qhash_qt4()
RESULT : tst_QHash::qhash_faster():
     0.015 msecs per iteration (total: 62, iterations: 4096)
PASS   : tst_QHash::qhash_faster()
RESULT : tst_QHash::javaString():
     0.016 msecs per iteration (total: 66, iterations: 4096)

Change-Id: Icb5da341ab6445163f4217650a0bdb3903e50210
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-20 12:42:27 +01:00
bin Revert "Fixed qtmodule-configtests on Windows" 2012-01-13 04:03:59 +01:00
config.tests Remove ICD plugin for bearer. 2012-01-10 07:12:41 +01:00
dist Remove QDir::convertSeparators() 2012-01-19 16:41:44 +01:00
doc/src core as a directory name is usually not a good idea 2012-01-19 10:07:34 +01:00
examples Remove QDir::convertSeparators() 2012-01-19 16:41:44 +01:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Remove warning and automagic for "missing QT += quick" 2012-01-19 23:58:44 +01:00
qmake qmake: Normalize paths instead of converting to native separators 2012-01-19 00:17:32 +01:00
src Change visibility of eventFilter(). 2012-01-20 12:42:10 +01:00
tests Add a string hash implementation similar to the one in Java. 2012-01-20 12:42:27 +01:00
tools Remove QDir::convertSeparators() 2012-01-19 16:41:44 +01:00
util Compile. 2012-01-20 02:07:13 +01:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Remove references to openvgversion.h 2012-01-14 14:48:16 +01:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure fix cross building mingw: doesn't need to pass qpa test 2012-01-19 23:58:32 +01:00
configure.exe Add a new QT_NO_SSL feature macro. 2012-01-06 11:19:23 +01:00
header.BSD Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
header.FDL Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
header.LGPL Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
header.LGPL-ONLY Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Update copyright year in license headers. 2012-01-05 06:36:56 +01:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Ensure qmodule.pri is installed. 2011-11-23 00:12:03 +01:00
sync.profile Remove references to openvgversion.h 2012-01-14 14:48:16 +01:00