Skip to content

Commit

Permalink
Merge pull request #120 from maciej/par-avoid-cloning
Browse files Browse the repository at this point in the history
Parallel: remove redundant container copying
  • Loading branch information
lemire authored Oct 31, 2017
2 parents 8a30a68 + 5d356e0 commit f69af21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (h *bitmapContainerHeap) PopIncrementing() bitmapContainerKey {
if newIdx < k.bitmap.highlowcontainer.size() {
newKey := bitmapContainerKey{
k.bitmap,
k.bitmap.highlowcontainer.getWritableContainerAtIndex(newIdx),
k.bitmap.highlowcontainer.containers[newIdx],
k.bitmap.highlowcontainer.keys[newIdx],
newIdx,
}
Expand Down Expand Up @@ -98,7 +98,7 @@ func newBitmapContainerHeap(bitmaps ...*Bitmap) bitmapContainerHeap {
if !bitmap.IsEmpty() {
key := bitmapContainerKey{
bitmap,
bitmap.highlowcontainer.getWritableContainerAtIndex(0),
bitmap.highlowcontainer.containers[0],
bitmap.highlowcontainer.keys[0],
0,
}
Expand Down

0 comments on commit f69af21

Please sign in to comment.