Skip to content

BigForEach is a wrapper for Async.forEach that includes improvements in performance, memory and stack size when operating on very large arrays

Notifications You must be signed in to change notification settings

jstrinko/BigForEach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bigforeach.js

bigforeach is a wrapper for Async.forEach. When working with large data sets, Async.forEach runs into performance, memory, and stack size problems. bigforeach is an attempt to tackle these issues. It's syntax is the same as Async.forEach. When using Async.forEach on large arrays (~1,000,000 or more), node tends to run out of memory. bigforeach simply utilizes a divide and conquer strategy to prevent memory issues. As an added bonus, due to the decreased stack size, performance is vastly improved. Using the included test script, performance gains exceeding 100% are observed.

TEST

About

BigForEach is a wrapper for Async.forEach that includes improvements in performance, memory and stack size when operating on very large arrays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published