comparison js/browser-couch.js @ 60:7fff33e9786b

Linked to web worker script file in docs.
author Atul Varma <varmaa@toolness.com>
date Wed, 15 Apr 2009 09:17:55 -0700
parents f36a50a6042c
children c4bf1cee771d
comparison
equal deleted inserted replaced
59:f36a50a6042c 60:7fff33e9786b
118 // A MapReducer that uses 118 // A MapReducer that uses
119 // [[https://developer.mozilla.org/En/Using_DOM_workers|Web Workers]] 119 // [[https://developer.mozilla.org/En/Using_DOM_workers|Web Workers]]
120 // for its implementation, allowing the client to take advantage of 120 // for its implementation, allowing the client to take advantage of
121 // multiple processor cores and potentially decouple the map-reduce 121 // multiple processor cores and potentially decouple the map-reduce
122 // calculation from the user interface. 122 // calculation from the user interface.
123 //
124 // The script run by spawned Web Workers is
125 // [[#js/worker-map-reducer.js|worker-map-reducer.js]].
123 126
124 function WebWorkerMapReducer(numWorkers, Worker) { 127 function WebWorkerMapReducer(numWorkers, Worker) {
125 if (!Worker) 128 if (!Worker)
126 Worker = window.Worker; 129 Worker = window.Worker;
127 130