commit | 276eaeba5a2875e1feabf788c8204b60c2999ba9 | [log] [tgz] |
---|---|---|
author | Shai Barack <shayba@google.com> | Wed Feb 07 08:48:42 2024 +0000 |
committer | Shai Barack <shayba@google.com> | Wed Feb 14 01:23:30 2024 +0000 |
tree | 7234ce7248325df4f4a12777a21be2eeba0aed90 | |
parent | 93e9efd0692cd1e3e0bdb40485d83fc9f08aefcc [diff] |
[text] Memoize DeviceConfig values Device config access is shown to be slow. These values aren't expected to change at runtime, so cache them. Bug: 323623465 Test: atest CtsTextClassifierTestCases Test: atest TextClassificationConstantsTest Change-Id: Iad3343f70fcf19ec9c7a3e9e53fad917d21dd3e3