3 ms·
This app has a memory leak where your worker threads are spawning out of control, causing browser slowdown and crashes. You can verify this in Chrome DevTools S
by 6n1____ 5y ago
This app has a memory leak where your worker threads are spawning out of control, causing browser slowdown and crashes. You can verify this in Chrome DevTools Source tab: after you click the Generate button, you can see the worker threads spawning out of control until you close the process.
I'd advise that you do a better job at manually terminating the threads with the TFJS process, and ensuring that no more than 1 worker process is spawned per TFJS execution. I've had success using this library in combination with TFJS: https://threads.js.org/ https://threads.js.org/