diff options
author | Andy McFadden <fadden@android.com> | 2009-07-10 16:15:23 -0700 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2009-07-10 16:15:23 -0700 |
commit | 0fb831a410412728d6ee79ff98c465233b0803d0 (patch) | |
tree | fc28a878a32ae655b0e48e1fbc67de271d713672 /luni-kernel/src | |
parent | 12037fdf53f4ac46f3e12067b3ae8b96f8967974 (diff) | |
download | libcore-0fb831a410412728d6ee79ff98c465233b0803d0.zip libcore-0fb831a410412728d6ee79ff98c465233b0803d0.tar.gz libcore-0fb831a410412728d6ee79ff98c465233b0803d0.tar.bz2 |
Minor class loading optimization.
In internal bug 1836311, the String.replace() in PathLoader.findClass
was identifed by traceview as 6.6% of startup time for an app. This
adds a (hidden) alternative that takes a "binary name" like the
functions in ClassLoader, and we do the slash-to-dot conversion inside
the VM as we convert it to a descriptor. (This is really how it should
have been done in the first place, but now it's part of the visible API
and engraved in stone.)
The original function now does a slash-to-dot conversion and calls the
new one.
(We may want to un-hide the method for the benefit of people writing
custom class loaders. If so, we can do that in a separate API-update
commit.)
Diffstat (limited to 'luni-kernel/src')
0 files changed, 0 insertions, 0 deletions