Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use splice() instead of repeated shift() to remove from queue (#106)
Calling splice() is more efficient than shift()ing from the start of the array up to batchSize(default of 300) times. The amount of time taken by shift() is proportional to the length of the array. This would only matter for large arrays.
- Loading branch information