summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
author destradaa <destradaa@google.com> 2015-02-10 15:04:43 -0800
committer destradaa <destradaa@google.com> 2015-02-10 15:07:50 -0800
commit9ba7c1c17567c19f0187d73cdca55ca99590674e (patch)
treeddce25f5c485ee2d5445394f84499b7b5e6ae5ea /libs/hwui/ProgramCache.cpp
parent4a39e1bb3339ec9286052426a76f8f3d8e265d5a (diff)
Intern strings used in Sensor information.
By creating a local 'interning map', Sensor information, such as: name, vendor, stringType, and requirePermissions; 92 string objects are not needed anymore. This frees ~6KB of memory in all processes accessing SensorManager. Change-Id: Idfdc98160363bec844c34fc3b71f5e8d7843a7be
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions