Skip to content

Commit

Permalink
Compress in + is redundant when already inserting in random order
Browse files Browse the repository at this point in the history
  • Loading branch information
bwahlgreen committed Jan 18, 2016
1 parent aef4123 commit bc98a59
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/tdigest/tdigest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def +(other)
while data.length > 0
t.push_centroid(data.delete_at(rand(data.length)))
end
t.compress!
t
end

Expand Down

0 comments on commit bc98a59

Please sign in to comment.