scalafmt and prettier
parent
e323a8595b
commit
744abd80cc
|
@ -4,3 +4,4 @@ maxColumn = 110
|
||||||
spaces.inImportCurlyBraces = true
|
spaces.inImportCurlyBraces = true
|
||||||
rewrite.rules = [SortImports, RedundantParens, SortModifiers]
|
rewrite.rules = [SortImports, RedundantParens, SortModifiers]
|
||||||
rewrite.redundantBraces.stringInterpolation = true
|
rewrite.redundantBraces.stringInterpolation = true
|
||||||
|
runner.dialect = scala213
|
||||||
|
|
|
@ -67,7 +67,7 @@ abstract private[controllers] class LilaController(val env: Env)
|
||||||
|
|
||||||
protected def EnableSharedArrayBuffer(res: Result)(implicit req: RequestHeader): Result =
|
protected def EnableSharedArrayBuffer(res: Result)(implicit req: RequestHeader): Result =
|
||||||
res.withHeaders(
|
res.withHeaders(
|
||||||
"Cross-Origin-Opener-Policy" -> "same-origin",
|
"Cross-Origin-Opener-Policy" -> "same-origin",
|
||||||
"Cross-Origin-Embedder-Policy" -> (if (HTTPRequest isChrome96OrMore req) "credentialless"
|
"Cross-Origin-Embedder-Policy" -> (if (HTTPRequest isChrome96OrMore req) "credentialless"
|
||||||
else "require-corp")
|
else "require-corp")
|
||||||
)
|
)
|
||||||
|
|
|
@ -117,8 +117,11 @@ export default function (opts: CevalOpts): CevalCtrl {
|
||||||
Math.min(Math.ceil((navigator.hardwareConcurrency || 1) / 4), maxThreads)
|
Math.min(Math.ceil((navigator.hardwareConcurrency || 1) / 4), maxThreads)
|
||||||
);
|
);
|
||||||
|
|
||||||
const estimatedMinMemory = (technology == 'hce' || technology == 'nnue') ? 2.0 : 0.5;
|
const estimatedMinMemory = technology == 'hce' || technology == 'nnue' ? 2.0 : 0.5;
|
||||||
const maxHashSize = Math.min(((navigator.deviceMemory || estimatedMinMemory) * 1024) / 8, growableSharedMem ? 1024 : 16);
|
const maxHashSize = Math.min(
|
||||||
|
((navigator.deviceMemory || estimatedMinMemory) * 1024) / 8,
|
||||||
|
growableSharedMem ? 1024 : 16
|
||||||
|
);
|
||||||
const hashSize = storedProp(storageKey('ceval.hash-size'), 16);
|
const hashSize = storedProp(storageKey('ceval.hash-size'), 16);
|
||||||
|
|
||||||
const multiPv = storedProp(storageKey('ceval.multipv'), opts.multiPvDefault || 1);
|
const multiPv = storedProp(storageKey('ceval.multipv'), opts.multiPvDefault || 1);
|
||||||
|
|
Loading…
Reference in New Issue