Using ArrayBuffer as payload for binary data to/from Web Workers

Now that ArrayBuffer has made its way into XHR, I think it would be reasonable to somehow use this new object type as a way to pass data to and from Workers without copying. I've seen hints and thoughts about this here and there, but I've never seen a formal discussion. I'm not even sure if webapps is the place for this discussion, although it seems like a reasonable place. Please let me know if there is a better place.

Has there been discussion anywhere that I've missed? 

The idea is that the buffer owned by the ArrayBuffer object could be passed to and from Web Workers with some mechanism (probably part of ArrayBuffer) controlling access to the data. Pass the data to the Web Worker and it would be accessible by the Worker, but not to the main thread. Pass it back and now the main thread has access and the Worker can no longer touch the data.

Thoughts? Am I bringing up an issue that has already been beaten to death elsewhere?


Received on Monday, 7 March 2011 23:06:43 UTC