Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(concurrentbatchprocessor): Allow re-use of the pending slice (#258)
This avoids a pitfall in which we repeatedly re-slice `b.pending` to `b.pending[1:]`, which causes the slice to be re-allocated instead of re-used. To re-use the slice, shift its contents by one, zero the final element, and shorten it by one.
- Loading branch information