• hjk's avatar
    De-emphasize PluginManager::getObjects<Type>() · cc883023
    hjk authored
    ... by additionally keeping local (currently non-owning) pools per
    "interesting" type.
    
    Current situation:
      - The global object pool does not scale well for looking up
        objects, as iteration plus qobject_cast typically iterates
        over all pooled objects.
      - User code that can use typed results from the object
        pool need to have access to the full type definition anyway,
        i.e.  depend on the plugin of the target class anyway.
    
    The patch here solves the scaling problem is to have local
    type-specific pools to which objects register in their
    constructors and deregister in their destructors.
    
    This patch here does *not* change the ownership model of the
    pooled objects, however, it opens the possibility to change
    the ownership model per type (e.g. by not putting things into
    the global pool at all anymore and make the local pool 'owning')
    and the intent is to handle that in later patchs.
    
    Even without the follow-up patches this here is a performance
    improvement for the cases that access the local pools instead
    the global one, i.e. "practically all".
    
    Change-Id: Ib11a42df2c4ecf5e1155534730083a520dd1995b
    Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
    Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
    cc883023
Name
Last commit
Last update
..
android Loading commit data...
autotest Loading commit data...
autotoolsprojectmanager Loading commit data...
baremetal Loading commit data...
bazaar Loading commit data...
beautifier Loading commit data...
bineditor Loading commit data...
bookmarks Loading commit data...
clangcodemodel Loading commit data...
clangpchmanager Loading commit data...
clangrefactoring Loading commit data...
clangstaticanalyzer Loading commit data...
classview Loading commit data...
clearcase Loading commit data...
cmakeprojectmanager Loading commit data...
coreplugin Loading commit data...
cpaster Loading commit data...
cppeditor Loading commit data...
cpptools Loading commit data...
cvs Loading commit data...
debugger Loading commit data...
designer Loading commit data...
diffeditor Loading commit data...
emacskeys Loading commit data...
fakevim Loading commit data...
genericprojectmanager Loading commit data...
git Loading commit data...
glsleditor Loading commit data...
helloworld Loading commit data...
help Loading commit data...
imageviewer Loading commit data...
ios Loading commit data...
macros Loading commit data...
mercurial Loading commit data...
modeleditor Loading commit data...
nim Loading commit data...
perforce Loading commit data...
projectexplorer Loading commit data...
pythoneditor Loading commit data...
qbsprojectmanager Loading commit data...
qmakeandroidsupport Loading commit data...
qmakeprojectmanager Loading commit data...
qmldesigner Loading commit data...
qmljseditor Loading commit data...
qmljstools Loading commit data...
qmlprofiler Loading commit data...
qmlprojectmanager Loading commit data...
qnx Loading commit data...
qtsupport Loading commit data...
remotelinux Loading commit data...
resourceeditor Loading commit data...
scxmleditor Loading commit data...
silversearcher Loading commit data...
subversion Loading commit data...
tasklist Loading commit data...
texteditor Loading commit data...
todo Loading commit data...
updateinfo Loading commit data...
valgrind Loading commit data...
vcsbase Loading commit data...
welcome Loading commit data...
winrt Loading commit data...
plugins.pro Loading commit data...
plugins.qbs Loading commit data...