GailTreeView: optimize a bit

Avoid many unnecessary list iterations by using a hash table
to store cell infos, and caching row and column counts. Based
on patches by William Jon McCann, bug 554171.

tree-performance results:

before:  (MINPERF:large tree test with a11y: 9.18531sec)
after:   (MINPERF:large tree test with a11y: 0.923463sec)

for comparison, without accessibility:
(MINPERF:large tree test: 0.016179sec)
This commit is contained in:
Matthias Clasen 2011-06-22 22:27:10 -04:00
parent 23bc606c79
commit 2deeab4c4f

File diff suppressed because it is too large Load Diff