diff options
author | Terry Wang <tytytyww@google.com> | 2021-07-01 19:11:39 -0700 |
---|---|---|
committer | Terry Wang <tytytyww@google.com> | 2021-07-09 12:09:10 -0700 |
commit | da0e9a9b37558bbbf4b1e7e3c249f22c8b474db1 (patch) | |
tree | 56e773518239a6778247db31520876843ca87033 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 733537f1a6b405027e18876b86666a07243f1e16 (diff) |
Add check for optimize after each mutation operation.
Optimize is an important job for AppSearch to work properly.
It could collect garbage and release resources. Without it, the garbage
resource will last forever and the device's space will be fulled up by
zombie documents.
The algorithm to trigger optimize is:
1: Query garbage resource info after a batch of mutation operations.
2: Only trigger optimize if there are enough resource could be released.
The behavior exists in AppSearch Jetpack for a while and working properly
for our Jetpack dogfooders.
Bug: 175255572
Test: FrameworkOptimizeStrategyTest
Test: AppSearchConfigTest
Test: AppSearchImplTest
Change-Id: Ib7ae475cc035d1b69969df1e22ac409895e0e3fa
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions