commit | b317e651e9b9600029241ccb68e21ac05597cfe6 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Wed Nov 02 10:26:30 2022 +0000 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Thu Nov 03 13:28:43 2022 +0000 |
tree | 2fae5112181fd48dfd3ff38ca26049ed35d576d2 | |
parent | e19d74b51ad8efd43c1583887cbde123ae769f7b [diff] |
Optimistically update field and method cache on type update. To save on future lookups, update the method and field caches as soon as we update the type cache, when the type has the same dex cache, and the dex cache is using full arrays. This saves the number of lookup of maps startup by ~30% (2100 -> 1500). Test: test.py Change-Id: I4cb708a04fb491fe65a75412bb2a8b9306e81f78