Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

ParallelArray

Our volunteers haven't translated this article into বাংলা (বাংলাদেশ) yet. Join us and help get the job done!

Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Note: This object was implemented in Firefox 17 and has been removed from Gecko 29 in favor of ParallelJS (PJS) currently available in the Nightly channel (bug 944074).

The goal of ParallelArray was to enable data-parallelism in web applications. The higher-order functions available on ParallelArray attempted to execute in parallel, though they may fall back to sequential execution if necessary. To ensure that your code executes in parallel, it is suggested that the functions should be limited to the parallelizable subset of JS that Firefox supports.

Syntax

new ParallelArray()
new ParallelArray([element0, element1, ...])
new ParallelArray(arrayLength, elementalFunction)

ParallelArray instances

Properties

length
Reflects the number of elements in the ParallelArray.

Methods

map
reduce
scan
scatter
filter
flatten
partition
get

Examples

Using map in parallel

var p = new ParallelArray([0, 1, 2, 3, 4]);
var m = p.map(function (v) {
  return v + 1;
});

See also

ডকুমেন্ট ট্যাগ এবং অবদানকারী

ট্যাগ: 
 Contributors to this page: fscholz, kohei.yoshino, Havvy, kscarfone, nmatsakis, williamr, Sheppy, evilpie
 সর্বশেষ হালনাগাদ করেছেন: fscholz,