sole / Animated_GIF

Javascript library for creating animated GIFs
https://sole.github.io/Animated_GIF
225 stars 53 forks source link

Can GIF encoding be offloaded to a web worker? #14

Open sole opened 10 years ago

sole commented 10 years ago

Currently the frames are processed in workers, but why is the encoding not in a worker?

Montoya commented 9 years ago

Uneducated guess: if encoding creates a blob, that blob is stored in memory. If it happens in a worker, that blob is in the memory space of the worker, but is not accessible to the main thread.

sole commented 9 years ago

@Montoya, that was a rhetoric question.

Additionally you can transfer object ownership between workers and the main thread.

Montoya commented 9 years ago

Yes I realized that like two minutes after posting it (and that the question was over a year old) but figured it was too late :(