瀏覽代碼

lib/model: Limit the number of default hashers on Android (ref #2220)

Like Windows and Mac, Android is also an interactive operating system.
On top of that, it usually runs on much slower hardware than the other
two. Because of that, it makes sense to limit the number of hashes used
by default there too.

Signed-off-by: Tomasz Wilczyński <[email protected]>
Tomasz Wilczyński 4 年之前
父節點
當前提交
296cc1bca2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/model/model.go

+ 1 - 1
lib/model/model.go

@@ -2403,7 +2403,7 @@ func (m *model) numHashers(folder string) int {
 		return folderCfg.Hashers
 		return folderCfg.Hashers
 	}
 	}
 
 
-	if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
+	if runtime.GOOS == "windows" || runtime.GOOS == "darwin" || runtime.GOOS == "android" {
 		// Interactive operating systems; don't load the system too heavily by
 		// Interactive operating systems; don't load the system too heavily by
 		// default.
 		// default.
 		return 1
 		return 1