W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

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

From: Chris Marrin <cmarrin@apple.com>
Date: Mon, 07 Mar 2011 15:05:40 -0800
Message-id: <4CD526D7-17BB-4069-B800-9A121D6E6990@apple.com>
To: Web Applications Working Group WG <public-webapps@w3.org>

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?

-----
~Chris
cmarrin@apple.com
Received on Monday, 7 March 2011 23:06:43 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:43 GMT