Improving performance for "rake report:combined_stats".
Improving performance for "rake report:combined_stats".

No longer call #to_s since CSV::Table#to_a has horrible performance. Related patch submitted to Ruby: https://github.com/ruby/ruby/pull/946

Then, pull the stat/match lookup outside of the iteration the alm_stats and stats. This resolves an O(n^m) performance hit by making it O(n). No need to use rassoc to scan on every iteration.
CrossRef/lagotto,lagotto/lagotto,lagotto/lagotto,CrossRef/lagotto,msingh05/lagotto,ankurpohekar/Lagotto,ankurpohekar/Lagotto,msingh05/lagotto,ankurpohekar/Lagotto,mfenner/lagotto,articlemetrics/lagotto,mfenner/lagotto,mfenner/lagotto,lagotto/lagotto,articlemetrics/lagotto,articlemetrics/lagotto,ankurpohekar/Lagotto,msingh05/lagotto,ankurpohekar/Lagotto,CrossRef/lagotto,ankurpohekar/Lagotto,ankurpohekar/Lagotto