Thanks Litho, I’ll do the non-cpow method for now. But ideally I want to switch it up to doing a transfer. I do transfer between my chromeworker and bootstrap right now. So my large multi meg arraybuffer is instantly moved from worker to bootstrap (or other way around) and the buffer is neutered in the one that sent it out, so its memory friendly
Otherwise I can watch my memory growing as i copy it from one to the other. It does get freed on GC, so for now Ill do copy, but I hope to hook up transfer in future. Thanks so much for the chat on this!
I think the way the transfer works, is it makes a pointer to the arraybuffer. which is a byte array, and then just use it over in the other thread, not sure, but thats how I used to do it before they banned that method lol. Cant get pointers to my ArrayBuffers anymore with the ctypes trick