I ended up creating my own structured clone 
implementation... https://github.com/vroad/nPool


2015年5月29日金曜日 9時44分39秒 UTC+9 vroad:
>
> I'm looking for a way to load an WebP image, decode it, and send it to 
> main thread from background thread.
> I'm using dlopen implementation copied from node source file in the 
> background thread. You may think that it's bad practice, but I want this 
> for my node-based desktop application.
>
> At first, I added dlopen to node-webworker-threads and called that from 
> background thread. DLOpen worked, but crashed while deserializing object. I 
> gave up debugging since I was not sure what was causing the issue.
> Then I tried npool. It provides me with better API than 
> node-webworker-threads and seemed not buggy as node-webworker-threads, 
> that's good, but doesn't work with large objects like typed arrays, because 
> this addon uses stringified JSON to communicate between threads.
>
> Do you know any other native addon that supports passing typed arrays 
> between threads?
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/cd38f231-9895-4fb0-be4e-9753e95c766c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to