Skip to content

Commit

Permalink
Parallel: remove redundant container copying
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej committed Oct 28, 2017
1 parent 81a3055 commit 5d356e0
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 5d356e0

Please sign in to comment.