Skip to content

Commit

Permalink
Add patch reducing POLL_INTERVAL_MS to 50ms to optimize cold boot
Browse files Browse the repository at this point in the history
Reduce POLL_INTERVAL_MS to 50ms and increase POLL_COUNT to 100 to
optimize cold boot.

Signed-off-by: Liu, Kai1 <[email protected]>
  • Loading branch information
liukai1025 committed Aug 22, 2024
1 parent 77e4c9e commit 99879b8
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 46d11f0f9af9134c7f87b8b9c7f106d6869565ba Mon Sep 17 00:00:00 2001
From: "Liu, Kai1" <[email protected]>
Date: Tue, 6 Aug 2024 09:45:23 +0800
Subject: [PATCH] Reduce POLL_INTERVAL_MS to 50ms to optimize cold boot

Reduce POLL_INTERVAL_MS to 50ms and increase POLL_COUNT to 100 to
optimize cold boot.

Tracked-On: OAM-123070
Signed-off-by: Liu, Kai1 <[email protected]>
---
src/com/android/providers/media/fuse/FuseDaemon.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/com/android/providers/media/fuse/FuseDaemon.java b/src/com/android/providers/media/fuse/FuseDaemon.java
index 34836af41..ee996e13f 100644
--- a/src/com/android/providers/media/fuse/FuseDaemon.java
+++ b/src/com/android/providers/media/fuse/FuseDaemon.java
@@ -36,8 +36,8 @@ import java.util.Objects;
*/
public final class FuseDaemon extends Thread {
public static final String TAG = "FuseDaemonThread";
- private static final int POLL_INTERVAL_MS = 1000;
- private static final int POLL_COUNT = 5;
+ private static final int POLL_INTERVAL_MS = 50;
+ private static final int POLL_COUNT = 100;

private final Object mLock = new Object();
private final MediaProvider mMediaProvider;
--
2.34.1

0 comments on commit 99879b8

Please sign in to comment.