aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/context2d/qquickcanvasitem.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-05-05 14:38:16 +0300
committerAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-05-27 10:20:45 +0000
commit8b99e2019a860d31e49e0fbe9bcfd9981dc2b768 (patch)
tree5676e47db0f57eef4da6a42e58d40e3203c1e283 /src/quick/items/context2d/qquickcanvasitem.cpp
parent818abf6a8cc9c862c10e14700f41b63006e9ecca (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 'src/quick/items/context2d/qquickcanvasitem.cpp')
0 files changed, 0 insertions, 0 deletions