commit | cffbc15d58796c8997100949efaac647771367f4 | [log] [tgz] |
---|---|---|
author | juanjuan.hou <juanjuan.hou@unisoc.com> | Thu Sep 17 18:40:41 2020 +0800 |
committer | Marco Nelissen <marcone@google.com> | Tue Dec 22 23:15:04 2020 +0000 |
tree | a18db17cdffc8bdeb2ab3dfeb2cf7ac69ca74d0c | |
parent | e8a66c66bad62aa5ab4778ce7ac448d563eae335 [diff] |
Add caching mechanism to speed up midi file reading speed. This cache mechanism reduces the number of DataSource reads and binder round trips to the IDataSource. For midi files smaller than 1.5M, the pre-read data mechanism will be enabled. Its purpose is to reduce the time spent on filetype sniffing. Issue:164977553 Change-Id: I1db7c739a69f4324cc339b8521b5a6998e8a8df0