Skip to content

Commit

Permalink
Decrease thread pool to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
bjester committed Dec 5, 2023
1 parent a77e3ef commit e08ba06
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ public Configuration getWorkManagerConfiguration() {
String processName = getApplicationContext().getPackageName();
processName += getApplicationContext().getString(R.string.task_worker_process);



// Using the same quantity of worker threads as Kolibri's python side:
// https://github.com/learningequality/kolibri/blob/release-v0.16.x/kolibri/utils/options.py#L683
return new Configuration.Builder()
.setDefaultProcessName(processName)
.setMinimumLoggingLevel(android.util.Log.DEBUG)
.setExecutor(Executors.newFixedThreadPool(20))
.setExecutor(Executors.newFixedThreadPool(6))
.build();
}

Expand Down

0 comments on commit e08ba06

Please sign in to comment.