[erlang-questions] Processing huge binaries in NIFs

Konstantin Sorokin kvs@REDACTED
Wed Apr 6 16:33:40 CEST 2011


Hello!

I want to process huge binaries in NIFs and in order not to screw up VM's
scheduler I want to move time consuming jobs into a separate thread. Do I
really need to make an internal copy of the binary before passing it to a
thread for processing or it'll be OK just to set pointers to raw data in a
task structure and then submit that task to the worker thread ?

-- 
Konstantin Sorokin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110406/13a6c471/attachment.htm>


More information about the erlang-questions mailing list