Don't cache visual data model v8 handles.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 5 Jun 2012 06:43:57 +0000 (16:43 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Jul 2012 12:29:11 +0000 (14:29 +0200)
commit5c50c19231943368ae1f07dbc63d57fac84445ca
tree52a6b888c4cb953524b96cc574c68a964dbb15de
parentb0b4869440fc6e5af42797cbcaa64ec30238be73
Don't cache visual data model v8 handles.

The external resource is reference counted and resused irregardless of
whether the handles are cached, and the reduction in the number of
handles allocated needs to be comes at the cost of keeping  persistent
handle which have a negative impact on garbage collection.

Change-Id: I92996faab08a0ff76d21e56dbdafdd7522882d2c
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
src/quick/items/qquickvisualadaptormodel.cpp
src/quick/items/qquickvisualdatamodel.cpp
src/quick/items/qquickvisualdatamodel_p_p.h