[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-wallet-webex] branch master updated: only run crypto
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-wallet-webex] branch master updated: only run crypto worker on half of available threads |
Date: |
Tue, 12 Dec 2017 23:06:17 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-webex.
The following commit(s) were added to refs/heads/master by this push:
new ddec9cf2 only run crypto worker on half of available threads
ddec9cf2 is described below
commit ddec9cf2faa774fd12a3b9cc0f1414198e52baa8
Author: Florian Dold <address@hidden>
AuthorDate: Tue Dec 12 23:06:13 2017 +0100
only run crypto worker on half of available threads
---
src/crypto/cryptoApi.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/crypto/cryptoApi.ts b/src/crypto/cryptoApi.ts
index 9a21d13a..12b1c970 100644
--- a/src/crypto/cryptoApi.ts
+++ b/src/crypto/cryptoApi.ts
@@ -203,6 +203,7 @@ export class CryptoApi {
// only works in the browser
// tslint:disable-next-line:no-string-literal
concurrency = (navigator as any)["hardwareConcurrency"];
+ concurrency = Math.max(1, Math.ceil(concurrency / 2));
} catch (e) {
// ignore
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-wallet-webex] branch master updated: only run crypto worker on half of available threads,
gnunet <=