revert back to 2 thread max again because turns out firefox didnt get better, just tor limits to 1 thread anyway

This commit is contained in:
Thomas Lynch
2022-09-21 21:32:33 +10:00
parent 614b437667
commit 521f9742c1

View File

@ -16,7 +16,7 @@ const powFinished = new Promise((resolve, reject) => {
const [_userkey, challenge, _signature] = combined.split("#");
const start = Date.now();
if (window.Worker && crypto.subtle) {
const threads = Math.min(4,Math.ceil(window.navigator.hardwareConcurrency/2));
const threads = Math.min(2,Math.ceil(window.navigator.hardwareConcurrency/2));
let finished = false;
const messageHandler = (e) => {
if (finished) { return; }