summaryrefslogtreecommitdiff
path: root/test/MultiDex
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-10-31 11:49:27 -0700
committerMathieu Chartier <mathieuc@google.com>2014-11-02 13:00:35 -0800
commitb6e292bf7eac9d73c6b79b1e9b7b87beb02436c9 (patch)
treeb6f56d5b09a304413e5787aacf622541deb4372b /test/MultiDex
parent372ad2e767770d084aa2ccb43c931d4dd4f5eae5 (diff)
Add image strings to intern table
When we create the runtime, we now add the image strings to the intern table if we are the zygote. This caused some memory bloat, so I added an extra unordered set to the intern table. There is now two unordered sets (hash talbe). One for pre-zygote interns and one for post-zygote interns. This helps since the pre-zygote hash table doesn't get dirtied. Even with adding the image strings, we get total memory savings of around 5-7 MB native PSS after device boot. FB launch Before: 2.20% art::DexFile::FindStringId(char const*) const TotalTime: 2069 TotalTime: 1985 TotalTime: 2088 TotalTime: 2003 TotalTime: 2034 TotalTime: 2049 After boot native PSS: 175585 kB: Native After: 0.27% art::DexFile::FindStringId(char const*) const TotalTime: 1682 TotalTime: 1756 TotalTime: 1825 TotalTime: 1751 TotalTime: 1666 TotalTime: 1813 After boot native PSS: 167089 kB: Native Bug: 18054905 Bug: 16828525 Bug: 17808975 Change-Id: Ie367f3222f8c4db409ec49c3845276908b51e9c9
Diffstat (limited to 'test/MultiDex')
0 files changed, 0 insertions, 0 deletions