IssueRaiser

Computation intensive tasks often take large amounts of data as input.

Computation intensive tasks often take large amounts of data as input. And sharing data with a worker always has to be done by serializing this data (in a message). So for large inputs, this approach doesn't work (the main thread would block the cpu while serializing the messages). But my biggest problem with workers is that they don't have an event-loop, so I can't share asynchronous code between the main thread and the workers.

Posted by amelius on Apr 14, 2015, 12:38 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.7,000 issues0 comments

hackernews (Other)

Computation intensive tasks often take large amounts of data as input.

ameliusApr 14, 2015, 12:38 PM

Computation intensive tasks often take large amounts of data as input. And sharing data with a worker always has to be done by serializing this data (in a message). So for large inputs, this approach doesn't work (the main thread would block the cpu while serializing the messages). But my biggest problem with workers is that they don't have an event-loop, so I can't share asynchronous code between the main thread and the workers.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue