qt5base-lts/src/sql/kernel
Christian Ehrlicher b739b3a040 QSqlRecord: (re)speedup indexOf(const QString& name)
While adding the possibility to access values for QSqlRecord with
decorated field names (table.field), some string-allocations were added
which created a remarkable slowdown. Replace the QString allocations
with QStringRef avoids those allocations and restores the speed for
normal operations (apart from on QString::indexOf() call and some
integer comparisons)

Task-number: QTBUG-65226
Change-Id: I9e458523891421abce9e4a7ed931fec000dcbe76
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2018-01-06 05:17:28 +00:00
..
kernel.pri QtSql: Fix qmake warning about missing qsql.h 2016-07-13 07:18:21 +00:00
qsql.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
qsqlcachedresult_p.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqlcachedresult.cpp Improve sql allocated cache reuse 2016-02-16 21:22:19 +00:00
qsqldatabase.cpp Merge remote-tracking branch 'origin/5.9' into 5.10 2017-09-20 11:58:32 +02:00
qsqldatabase.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqldriver_p.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqldriver.cpp Doc: Mark the dbmsType() function and DbmsType enum as internal 2017-08-16 13:14:33 +00:00
qsqldriver.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqldriverplugin.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qsqldriverplugin.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqlerror.cpp Fix some qdoc warnings for 5.10 2017-06-20 08:54:52 +00:00
qsqlerror.h Add move special member functions to QSqlError 2017-04-28 12:50:34 +00:00
qsqlfield.cpp Fix BC breakage by adding an overload for the QSqlField constructor 2017-11-13 06:59:25 +00:00
qsqlfield.h Fix BC breakage by adding an overload for the QSqlField constructor 2017-11-13 06:59:25 +00:00
qsqlindex.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qsqlindex.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqlnulldriver_p.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqlquery.cpp QSqlQuery: Remove temporary variable in navigation functions 2017-11-29 06:54:15 +00:00
qsqlquery.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqlrecord.cpp QSqlRecord: (re)speedup indexOf(const QString& name) 2018-01-06 05:17:28 +00:00
qsqlrecord.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqlresult_p.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qsqlresult.cpp QtSql: eradicate remaining Q_FOREACH loops 2016-02-17 16:17:50 +00:00
qsqlresult.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qtsqlglobal_p.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00
qtsqlglobal.h Add qtsqlglobal.h and qtsqlglobal_p.h 2016-07-03 07:56:23 +00:00