On Thu, Mar 14, 2013 at 7:08 AM, <n...@neilstansbury.com> wrote: > Hi all, > > To what extent is the Main thread consumed by a (Chrome)Workers > postMessage() and onmessage() calls to other Sub(Chrome)Workers? > > Specifically, if a sub-worker postMessage()s to it's listening parent > Worker, and the parent Worker posts back to the sub does this hit the main > thread significantly? > > I'm trying to decide on a design patters as to if it's worth using: > > Master > Worker > SubWorker > SubWorker > SubWorker > > vs > > Master > Worker > Worker > Worker > > If a sub worker can post and receive messages with less performance hit on > Main, then the overhead of a Worker handler would seem worthwhile. > > > Cheers, > > Neil > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform >
Message passing from a worker to a sub-worker (or vice versa) only involves the worker thread and the sub-worker thread. - Kyle _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform