heic2any icon indicating copy to clipboard operation
heic2any copied to clipboard

Worker leaks 70 Mb of RAM

Open chebum opened this issue 3 years ago • 0 comments

The heic2any library uses a web worker to convert HEIC files. After converting a file, the worker remain in memory until page refresh. It leaks about 70Mb on my machine.

Proposed fix: https://github.com/chebum/heic2any/commit/39327e2e86886e62f51cb676c8e206876a5732d8

It terminates web worker after 10 seconds of inactivity.

Fixed heic2any.js is available here: https://github.com/chebum/heic2any/tree/master/dist

The fix also includes pull request #27

chebum avatar Dec 10 '21 19:12 chebum