railslove / kickerapp

https://www.kicker.cool
25 stars 13 forks source link

speed up calculating of longest streaks #102

Closed yoyostile closed 9 years ago

yoyostile commented 9 years ago

Well, I guess this is a first step in the right direction.

Before: => #<Benchmark::Tms:0x007fe988e6c390 @label="", @real=2.984086545999162, @cstime=0.0, @cutime=0.0, @stime=0.24, @utime=2.0199999999999996, @total=2.26>

After: => #<Benchmark::Tms:0x007f82049b6b20 @label="", @real=0.0729897640121635, @cstime=0.0, @cutime=0.0, @stime=0.0, @utime=0.05999999999999961, @total=0.05999999999999961>

DonSchado commented 9 years ago

awesome! kill all the n+1

paulkoegel commented 9 years ago

Schön :)