Re: [v8-users] gc and threading

2019-05-17 Thread Ledion Bitincka
ind. On Thursday, May 16, 2019 at 6:18:06 AM UTC-7, Peter Marshall wrote: > > On Wednesday, May 15, 2019 at 9:09:18 PM UTC+2, Ledion Bitincka wrote: >> >> Thanks! >> >> > While I understand that this is tempting, please be aware that only one >> thread

Re: [v8-users] gc and threading

2019-05-15 Thread Ledion Bitincka
Thanks! > While I understand that this is tempting, please be aware that only one thread may be active in one Isolate at any given time. I was hoping that there could be multiple threads that had "read-only" access to an Isolate's heap - I was looking through how ValueSerializer works and now

[v8-users] gc and threading

2019-05-15 Thread Ledion Bitincka
I'm trying to improve some serialization code in NodeJS and was wondering if this could be achieved by going down to the native code and using multiple threads to parallelize the serialization of multiple objects. For example, imagine we need to serialize 1K objects to JSON/OtherFormat - split