My bootstrap.js communicates with a ChromeWorker, and then bootstrap.js communicates with a framescript.
I used to transfer data from ChromeWorker to the bootstrap.js using the transferrables technique on ArrayBuffer. However I cannot transfer to the framescript as it is in a different process.
So rather then: 1) Transfer from ChromeWorker to bootstrap 2) Send copy of it to Framescript via message manager
I am doing this now: 1) In ChromeWorker do URL.createObjectURL
for the blob of that ArrayBuffer 2) Tell bootstrap.js the url 3) Bootstrap.js tells the framescript the object url
I was wondering your thoughts about this method. I like to avoid transferring copies of large data via messaging system. But I’m not sure of the perf differences so wanted to ask you.
Thanks