summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/15/changes
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-01-28 17:34:01 -0800
committerJeff Brown <jeffbrown@google.com>2011-01-28 17:34:01 -0800
commit2c376fc46cd01b12e003a7bf83d82f527f6efaf1 (patch)
tree830dc4c6a5ffafaa6aeaa49fe6f36c8e96e64313 /docs/html/sdk/api_diff/15/changes
parentaf3d74c05c2ea36f8641183c9f1ddc5b9b75ff85 (diff)
Optimize IntentResolver to reduce lookup time by 50%.
IntentResolver frequently iterates over hundreds of different IntentFilters and spends much of its time creating iterators and comparing strings. This change avoids reduces the amount of garbage created by eschewing iterators where possible. The FastImmutableArraySet type on its own provides a 2.5x speed boost compared to repeatedly iterating over a HashSet. In absolute terms, during orientation changes we spent about 160ms resolving 11 intents and performing 1129 calls to IntentFilter.match. Now we spend half of that time. Change-Id: Ia120e0082c8cf0b572a0317b9ef4a22c766dbad6
Diffstat (limited to 'docs/html/sdk/api_diff/15/changes')
0 files changed, 0 insertions, 0 deletions