OSDN Git Service

preloaded-classes: Add android.text.Html$HtmlParser
authorNarayan Kamath <narayan@google.com>
Wed, 3 May 2017 09:39:29 +0000 (10:39 +0100)
committerNarayan Kamath <narayan@google.com>
Wed, 3 May 2017 09:54:28 +0000 (10:54 +0100)
commitb892766f894f57c23ce0d7a098cbfecaf5d40793
treece55922154674b1c15545dbe6594492bff911375
parentfc513f98d7086605e9b3499d90a88d3b4592c2b6
preloaded-classes: Add android.text.Html$HtmlParser

This class creates a singleton HTMLSchema instance in <clinit> and
we want this done in the zygote. HTMLSchema.<init> is too large for
the compiler and can allocate ~100k of objects on the heap. This also
saves ~50ms in the execution of Html.fromHtml on a lightly loaded
marlin-userdebug.

Test: manual
Bug: 36678451
Change-Id: Icdd3af35018bbe283b3e3690c696e6517452165d
preloaded-classes