padolsey / operative

:dog2: Seamlessly create Web Workers
MIT License
655 stars 45 forks source link

allow pedanticism #30

Closed robertleeplummerjr closed 9 years ago

robertleeplummerjr commented 9 years ago

When one needs to use operative for something resource intensive, such as streaming json (see http://developerblog.redhat.com/2014/05/20/communicating-large-objects-with-web-workers-in-javascript/ ) it may be ideal to have more than one callback, but in doing so may be somewhat pedantic for the every day implementation.

robertleeplummerjr commented 9 years ago

I have this now working flawlessly with loading large json into web workers, and then streaming it to the ui thread. I might add that currently I'm streaming over 200mb, from multiple files, with no freezing on the ui thread. As a reference, I used this article: http://developerblog.redhat.com/2014/05/20/communicating-large-objects-with-web-workers-in-javascript/ with operative, and created this: https://github.com/Spreadsheets/jQuery.sheet/blob/master/Sheet/thread.js

The result loads to the end user in under a second. Truly outstanding.

padolsey commented 9 years ago

Sorry for not responding sooner. Persisting callbacks has been brought up before (see #15) and has made it into 0.4.0rc1. I'm currently working on a clean-up which'll result in 0.4.0 hopefully being officially released (after rc1 and rc2) and much more clarity about the current state of the master branch. Sorry it's pretty unclear atm... been quite busy lately.

robertleeplummerjr commented 9 years ago

ok. But my solution is pretty easy and straightforward... and it is already committed.

On Wed, Apr 8, 2015 at 4:59 PM, James Padolsey notifications@github.com wrote:

Sorry for not responding sooner. Persisting callbacks has been brought up before (see #15 https://github.com/padolsey/operative/issues/15) and has made it into 0.4.0rc1 https://github.com/padolsey/operative/tree/0-4-rc1. I'm currently working on a clean-up which'll result in 0.4.0 hopefully being officially released (after rc1 and rc2) and much more clarity about the current state of the master branch. Sorry it's pretty unclear atm... been quite busy lately.

— Reply to this email directly or view it on GitHub https://github.com/padolsey/operative/pull/30#issuecomment-91035923.

Robert Plummer

robertleeplummerjr commented 9 years ago

Sorry, I missread. I didn't think you had already committed.

On Wed, Apr 8, 2015 at 5:43 PM, Robert Plummer <robertleeplummerjr@gmail.com

wrote:

ok. But my solution is pretty easy and straightforward... and it is already committed.

On Wed, Apr 8, 2015 at 4:59 PM, James Padolsey notifications@github.com wrote:

Sorry for not responding sooner. Persisting callbacks has been brought up before (see #15 https://github.com/padolsey/operative/issues/15) and has made it into 0.4.0rc1 https://github.com/padolsey/operative/tree/0-4-rc1. I'm currently working on a clean-up which'll result in 0.4.0 hopefully being officially released (after rc1 and rc2) and much more clarity about the current state of the master branch. Sorry it's pretty unclear atm... been quite busy lately.

— Reply to this email directly or view it on GitHub https://github.com/padolsey/operative/pull/30#issuecomment-91035923.

Robert Plummer

Robert Plummer

padolsey commented 9 years ago

0.4.0 is now released :)

See http://jsfiddle.net/phnt4pf2/1/

robertleeplummerjr commented 9 years ago

you rock.

On Fri, Apr 10, 2015 at 1:21 PM, James Padolsey notifications@github.com wrote:

Closed #30 https://github.com/padolsey/operative/pull/30.

— Reply to this email directly or view it on GitHub https://github.com/padolsey/operative/pull/30#event-278316974.

Robert Plummer