diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2017-12-24 14:13:39 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-01-06 05:17:28 +0000 |
commit | b739b3a0402e71041d99fa138630b806059b19b2 (patch) | |
tree | a5794029ee5051880b35f06604e4341d5e3f2b94 /qmake/generators/unix/unixmake2.cpp | |
parent | 1e75dcf2518e37a7b83d006a4e002f972615b43b (diff) |
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>
Diffstat (limited to 'qmake/generators/unix/unixmake2.cpp')
0 files changed, 0 insertions, 0 deletions