diff options
| author | Tobias Thierer <tobiast@google.com> | 2019-10-08 17:55:01 +0100 | 
|---|---|---|
| committer | Tobias Thierer <tobiast@google.com> | 2019-10-08 20:56:06 +0100 | 
| commit | 3fc6f898972e75f6b629a57b189ba7d5ee3ce186 (patch) | |
| tree | e17cf104e366ae51f615cc86da70f7c1b460269e /annotations/generate_annotated_java_files.py | |
| parent | 959cbaf17e8a4a653a86ccbeb068e21e5e3e0a7c (diff) | |
Minimize default MIME map and optimize loading.
This CL topic speeds up DefaultMimeMapFactory.create() from 15.5msec
to 5.7msec (measured by bundling a copy of the logic and data into
a test app) and saves 5.2 KByte of space (16 KBytes uncompressed) in
framework.jar. This CL topic does not change the amount of heap memory
consumed by the loaded MimeMap.
Most of these improvements derive from the other CLs in this topic.
This particular CL makes a minor performance contribution by changing
MimeMap.Builder to use the faster String.indexOf(char) in favor of
String.contains(String).
Test: CtsMimeMapTestCases
Bug: 142267887
Change-Id: I6538a970711ba710aced80eccb53f5912a1147d1
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
