Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32986864 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Experiment to skip fsync in SharedPreferences" into main

parents 94f8fbf8 637e7098
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -812,7 +812,9 @@ final class SharedPreferencesImpl implements SharedPreferences {

            writeTime = System.currentTimeMillis();

            if (!Flags.sharedpreferencesSkipFsync()) {
                FileUtils.sync(str);
            }

            fsyncTime = System.currentTimeMillis();

+7 −0
Original line number Diff line number Diff line
@@ -37,3 +37,10 @@ flag {
    description: "Include the ANR subreason in the description retrieved from ApplicationExitInfo"
    bug: "295599954"
}

flag {
     name: "sharedpreferences_skip_fsync"
     namespace: "system_performance"
     description: "What if SharedPreferences just didn't fsync()? Let's find out."
     bug: "435433868"
}
 No newline at end of file