asyncplify-sort

0.5.2 • Public • Published

asyncplify-sort

In-memory and external sort for asyncplify.

External sorting performed by asyncplify can sort relatively large dataset that don't necessarily fit in memory.

Installation

npm install asyncplify-sort

Example

var asyncplify = require('asyncplify');
var asyncplifySort = require('asyncplify-sort');
 
asyncplify
    .range(100000)
    .map(function (v) { return 100000 - v; })
    .pipe(asyncplifySort())
    .take(2)
    .subscrible(console.log.bind(console));
    
// 1
// 2
// end.

TODO

  • Add support for sorting using multiple core. Test using worker and child process.
  • Add support for sorting on multiple machine.

License

The MIT License (MIT)

Copyright (c) 2015 Dany Laporte

Package Sidebar

Install

npm i asyncplify-sort

Weekly Downloads

0

Version

0.5.2

License

MIT

Last publish

Collaborators

  • danylaporte