recommendify icon indicating copy to clipboard operation
recommendify copied to clipboard

Performance improvement in add_set

Open scottley opened this issue 12 years ago • 1 comments

I noticed that CCMatrix#add_set was taking a very long time. The culprit was all the increment calls for each pair that were generating tons of activity on the redis connection. By encapsulating them in a pipeline, add_set executes 2-3 times faster.

scottley avatar Aug 12 '12 07:08 scottley

This pull request passes (merged ce8612a9 into 15ad976b).

travisbot avatar Aug 12 '12 08:08 travisbot