summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2016-06-27 12:30:02 -0700
committerAdam Lesinski <adamlesinski@google.com>2016-06-27 12:30:02 -0700
commit6aec452f91868c42b9dee156e9d2e22d1a1e5566 (patch)
tree5b83fc3ec8f29810ad46f7763ab98615a4334418 /tools/aapt2/diff/Diff.cpp
parent015c8a3ac0d25a85899f433bc9b0af6c3dc849fc (diff)
Fix AttributeCache
AttributeCache relied on the frequency of the garbage collector to clean up resource references. The garbage collector seems to have gotten faster and the cache essentially doesn't cache anything. Switch to using an LRU cache that holds strong references to a finite set of Resources. This should be very small, just to keep the few working apps involved in app switches in memory. Bug:29405575 Change-Id: I64b34742c820f1e7872061a574e6cf1a76887149
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions