Cache accessibility plugins.
authorMorten Johan Sorvig <morten.sorvig@digia.com>
Thu, 13 Dec 2012 13:54:47 +0000 (14:54 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 2 Jan 2013 06:47:46 +0000 (07:47 +0100)
commit818c544d6be0daf399ad69222b196e75e6b54505
treea5ae8b009a1cde40377aa2e5447a37a6de8c342e
parent3f374afaae93a7804ee367098719c8a178d906f8
Cache accessibility plugins.

Profiling shows that the cost of QAcccessible::
queryAccessibleInterface is dominated by plugin loading.
(json parsing etc.)

Cache QAccessiblePlugin per class. Also cache the fact
that no plugin is found for a certain class. This speeds
up the average queryAccessibleInterface call by a factor
of 10X

Change-Id: Iab6d052dec499a2203d1dcc4672a8a543b279239
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
src/gui/accessible/qaccessible.cpp