diff options
| author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-05-05 14:38:16 +0300 |
|---|---|---|
| committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-05-27 10:20:45 +0000 |
| commit | 8b99e2019a860d31e49e0fbe9bcfd9981dc2b768 (patch) | |
| tree | 5676e47db0f57eef4da6a42e58d40e3203c1e283 /tests/auto/qml/qqmlsqldatabase/tst_qqmlsqldatabase.cpp | |
| parent | 818abf6a8cc9c862c10e14700f41b63006e9ecca (diff) | |
Imports: de-duplicate some expensive calls
QMetaMethod::parameterNames() contains internal loop,
and we had quadratic behavior. Since operator[] was used
with temp object, also we had detach()ing.
QUrl::path() contains memory allocation.
To avoid these issues cache results of functions.
Change-Id: Ie4c3f0573a000342aff44de0dd4f744a146bb935
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlsqldatabase/tst_qqmlsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
