RESOLVED WONTFIX 68255
Demo of transferrable Typed Arrays between Web Workers using postMessage
https://bugs.webkit.org/show_bug.cgi?id=68255
Summary Demo of transferrable Typed Arrays between Web Workers using postMessage
Tom Wiltzius
Reported 2011-09-16 10:29:24 PDT
Created attachment 107678 [details] complete demo of web workers with transferrable typed arrays This patch adds a demo that shows off WebKit's nascent support for transferrable Typed Arrays using postMessage between web workers. It can run synchronously, or with a varied number of worker threads, and with or without the new support for transferrable typed arrays, to demonstrate how performance varies across these scenarios. The application is a modified WebGL demo, taken from the Khronos repository (http://www.khronos.org/webgl/wiki/Demo_Repository).
Attachments
complete demo of web workers with transferrable typed arrays (353 bytes, patch)
2011-09-16 10:29 PDT, Tom Wiltzius
no flags
corrected demo of web workers with transferrable typed arrays (209.69 KB, patch)
2011-09-16 10:31 PDT, Tom Wiltzius
kbr: review-
second corrected web worker and transferrable typed arrays demo (189.50 KB, patch)
2011-09-16 12:31 PDT, Tom Wiltzius
no flags
Tom Wiltzius
Comment 1 2011-09-16 10:31:29 PDT
Created attachment 107679 [details] corrected demo of web workers with transferrable typed arrays
Kenneth Russell
Comment 2 2011-09-16 11:27:05 PDT
Comment on attachment 107679 [details] corrected demo of web workers with transferrable typed arrays Thanks for doing this work. I'm looking forward to seeing what this looks like running on top of the new Transferable support for typed arrays. However, there are several problems with this patch. First, this demo doesn't belong in the WebKit repository. You can submit a patch against the demos in the Khronos repository at https://www.khronos.org/bugzilla/ . Second, the patch is missing key new files like demo-multicore.js. Third, it replicates many files unused by the vertex-buffer-object demo such as o3djs/particles.js. I'm marking this patch r-. Please submit patches against this demo using the Khronos issue tracker.
Tom Wiltzius
Comment 3 2011-09-16 12:31:37 PDT
Created attachment 107703 [details] second corrected web worker and transferrable typed arrays demo Included missing files, removed unnecessary ones.
Tom Wiltzius
Comment 4 2011-09-16 12:33:21 PDT
Thanks. Sorry about the file confusion, hopefully this is now corrected. I've been doing this work under Dmitry Lomov's direction; he can indicate his intentions on Khronos vs. WebKit. I'm happy to submit it there instead. (In reply to comment #2) > (From update of attachment 107679 [details]) > Thanks for doing this work. I'm looking forward to seeing what this looks like running on top of the new Transferable support for typed arrays. However, there are several problems with this patch. First, this demo doesn't belong in the WebKit repository. You can submit a patch against the demos in the Khronos repository at https://www.khronos.org/bugzilla/ . Second, the patch is missing key new files like demo-multicore.js. Third, it replicates many files unused by the vertex-buffer-object demo such as o3djs/particles.js. I'm marking this patch r-. Please submit patches against this demo using the Khronos issue tracker.
Dmitry Lomov
Comment 5 2011-09-16 12:43:04 PDT
(In reply to comment #4) > Thanks. Sorry about the file confusion, hopefully this is now corrected. > > I've been doing this work under Dmitry Lomov's direction; he can indicate his intentions on Khronos vs. WebKit. I'm happy to submit it there instead. > Cool - I'll be happy to get this into Khronos repository instead if Ken thinks it belongs there :)
Kenneth Russell
Comment 6 2012-01-19 12:05:28 PST
This has been checked into the Khronos repository. Closing.
Note You need to log in before you can comment on or make changes to this bug.