Skip to content

Parallel.js is a tiny library for multi-core processing in Javascript.

License

Notifications You must be signed in to change notification settings

gevrum/parallel.js

 
 

Repository files navigation

Parallel.js

Build Status

Idea

import { Jobs, ParallelArray } from 'paralleljs';

// Execute multiple jobs in parallel and asynchrnously
const jobs = new Jobs();
const [job1, job2, job3] = await jobs.all([
  () => fibonacci(1),
  gaussianSumm,
  foobar
]);
console.log(job1, job2, job3);

// An array with all methods parallelized
const array = new ParallelArray([1, 2, 3]);
array.push(1);
array.map(e => e + 1);
array.filter(e => !!e);

Local Development

git clone https://github.com/parallel-js/parallel.js
cd parallel.js
yarn
yarn test

Contributors

Parallel.js is made up of four contributors:

About

Parallel.js is a tiny library for multi-core processing in Javascript.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 69.6%
  • Rust 30.4%