Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
借助新的并行计算工具构造了一个Trie结构,在保持APK Parser性能基本不变的情况下,将 自动适配表达式的性能提升了10倍。原先一个表达式求值需要耗费将近1秒,现在只需20ms不到。 旧的Benchmark记录 BM: Parse DexClasses takes 758 ms. BM: Search android.support.v4.app takes 747 ms. BM: Search com.tencent.mm.ui.contact takes 1239 ms. BM: Search com.tencent.mm.plugin.sns.ui takes 1393 ms. BM: Search com.tencent.mm takes 1635 ms. BM: Search com.tencent.mm.ui.conversation takes 761 ms. BM: Search com.tencent.mm.sdk.platformtools takes 860 ms. BM: Search com.tencent.mm.sdk.platformtools takes 669 ms. BM: Search com.tencent.mm.booter.notification takes 561 ms. BM: Search com.tencent.mm.storage takes 871 ms. BM: Search com.tencent.mm.booter.notification.queue takes 913 ms. BM: Search com.tencent.mm.ui takes 518 ms. BM: Search com.tencent.mm.modelsfs takes 626 ms. BM: Search com.tencent.mm.ui.chatting takes 470 ms. BM: Search over classes takes 4414 ms. 数据结构升级后的Benchmark记录 BM: Parse DexClasses takes 779 ms. BM: Search android.support.v4.app takes 42 ms. BM: Search com.tencent.mm takes 167 ms. BM: Search com.tencent.mm.sdk.platformtools takes 5 ms. BM: Search com.tencent.mm.booter.notification takes 1 ms. BM: Search com.tencent.mm.booter.notification.queue takes 0 ms. BM: Search com.tencent.mm.modelsfs takes 0 ms. BM: Search com.tencent.mm.plugin.sns.ui takes 66 ms. BM: Search com.tencent.mm.storage takes 1 ms. BM: Search com.tencent.mm.ui takes 2 ms. BM: Search com.tencent.mm.ui.chatting takes 24 ms. BM: Search com.tencent.mm.ui.contact takes 19 ms. BM: Search com.tencent.mm.ui.conversation takes 14 ms. BM: Search over classes takes 558 ms.
- Loading branch information
388e25f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
大佬回来了牛皮 ,我可以帮忙翻译的~