diff options
author | Adam Lesinski <adamlesinski@google.com> | 2017-02-08 07:03:50 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2017-02-15 12:40:02 -0800 |
commit | c8f71aa67ea599cb80205496cb67e9e7a121299c (patch) | |
tree | 2966aa97b09f04f9b7379fd93a7fc3ea1ae9009f /tools/aapt2/SdkConstants.h | |
parent | c535d122c6a58a152ff2581f936070c2695c45ba (diff) |
Add ResTable_sparseTypeEntry support
Benchmarks on bullhead-userdebug show that there is a negligent
performance impact when using sparse entries on a 30% loaded
sparse type of 1000 resources.
Benchmark Time CPU Iterations
-----------------------------------------------------------------------------------
BM_SparseEntryGetResourceSparseLarge 255 ns 254 ns 2751408
BM_SparseEntryGetResourceNotSparseLarge 254 ns 254 ns 2756534
Bug: 27381711
Test: make libandroidfw_tests aapt2_tests
Change-Id: I051ea22f2f6b2bc3696e446adc9e2a34be18009f
Diffstat (limited to 'tools/aapt2/SdkConstants.h')
-rw-r--r-- | tools/aapt2/SdkConstants.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aapt2/SdkConstants.h b/tools/aapt2/SdkConstants.h index 98ba94badfed..c2ee2524c5e8 100644 --- a/tools/aapt2/SdkConstants.h +++ b/tools/aapt2/SdkConstants.h @@ -25,7 +25,7 @@ namespace aapt { -enum { +enum : int { SDK_CUPCAKE = 3, SDK_DONUT = 4, SDK_ECLAIR = 5, @@ -49,7 +49,7 @@ enum { SDK_MARSHMALLOW = 23, SDK_NOUGAT = 24, SDK_NOUGAT_MR1 = 25, - SDK_O = 26, // STOPSHIP Replace with real version + SDK_O = 26, // STOPSHIP Replace with real version }; size_t FindAttributeSdkLevel(const ResourceId& id); |