Skip to content

Instantly share code, notes, and snippets.

@break24
break24 / ThreadPool.js
Created September 5, 2014 15:25
ThreadPool.js, a requirejs module for managing multiple webworkers,
define(function() {
// read more: http://www.smartjava.org/content/html5-easily-parallelize-jobs-using-web-workers-and-threadpool
var ThreadPool = function(size, isIdleCallback) {
// set some defaults
console.log("Init ThreadPool");
this.taskQueue = [];
this.workerQueue = [];
this.poolSize = size || 4;
@break24
break24 / Mongo_Monitoring.md
Last active April 10, 2019 11:14
Mongo snippets

Some snippets to analyze indexes for mongo shell or tools like NoSQLBooster