Better HN
topnewbestaskshowjobs
Log inSign up

6n1____

6 karma · joined May 23, 2021 (5y ago) · 4 submissions

Submissions

comment 5y ago · link · parent

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/

2.

How to Sleepmint NFT Tokens(linkedin.com ↗)

2 points · by 6n1____ · 5y ago · discuss

comment 5y ago · link · parent

This library checks out - I recently used threads.js in combination with a Tensorflow.js integration in a React app to analyze the metadata of WebRTC feeds at production scale.