diff options
| author | 2022-03-20 16:49:32 +0800 | |
|---|---|---|
| committer | 2022-03-20 16:49:32 +0800 | |
| commit | 9b4f3eaf17e3200fe77a7b094abb6a7a5f7a854f (patch) | |
| tree | 382b588fa90703732911c42cbcc2667c20e70bca /libs/androidfw/ResourceUtils.cpp | |
| parent | 6287488399d7d14f2091bd84bf4a4c6175dd4894 (diff) | |
dynsystem.SparseInputStream: Implement read(buf, off, len)
InstallationAsyncTask calls SparseInputStream.read(buf, off, len),
however SparseInputStream didn't override that method, so the method
actually fallbacks to the default implementation, which is a for-loop
calling read() (single byte). This is a significant performance hit.
This modest fix boosts the DSU installation time significantly:
* physical device: 45s -> 15s
* virtual device: 30s -> 7s
Bug: 225310919
Test: start a Dynamic System installation
Change-Id: I5a61dc2e9554719aece43491b813f6647b4bcc65
Diffstat (limited to 'libs/androidfw/ResourceUtils.cpp')
0 files changed, 0 insertions, 0 deletions