commit | fe33a3aa32eb838b641c71c94deb65b638498214 | [log] [tgz] |
---|---|---|
author | Shuzhen Wang <shuzhenwang@google.com> | Sat Dec 28 21:49:20 2019 -0800 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Thu Jan 02 08:55:29 2020 -0800 |
tree | 150e6cf42afe51c6281a443395708dc8478f78d6 | |
parent | 6b7926d1fccd554da360b9c42d7d820c0c7f4a5e [diff] |
Camera: Cache tag id to avoid repeatative lookup Looking up tag id based on tag name for each key is potentially time consuming. Instead, cache the id in the Key object so that only when the first getTag() triggers a look-up. All subsequent calls doesn't do look-up. Bug: 144028609 Test: Run GCA and observe CameraMetadata CPU consumption Change-Id: Iadd92e7e3b6cb4d610a6c9704ca2066291291f43