diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2016-07-04 15:21:19 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-07-07 14:50:00 +0000 |
commit | b6c10cf33107309f13c9845495d9d7d4f45f34bf (patch) | |
tree | 3d2681f8c6435752ddd81b33d44687381ecfa8af /src/plugins/platforms | |
parent | 3658354a7de9615bdf03b49736fea3ec41cecd77 (diff) |
Improve lookup speed for QAccessible::uniqueId
When QAccessible::uniqueId was called, it would call QHash::key(),
which has linear time performance. This can cause application
slowdown if a big number of QAccessibleInterface Ids have to be found.
The patch adds an additional QHash to keep track of the inverse
relationship from QAccessibleInterface pointers to their Ids.
Change-Id: I975e3dc0e6c628e2ea701323d8b87184ad133cfb
Task-number: QTBUG-54491
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions