Please sign in to comment.
Use sets defined once instead of arrays declared in line where order
doesn't matter. Very minor perf improvement, evidence of which is either anecdotal (rspec's suite appears to run about 0.1 second faster on average) or assumed based on benchmarks posted at https://github.com/rspec/rspec-expectations/blob/master/benchmarks/set_vs_array_include.rb
- Loading branch information...
Showing with 8 additions and 4 deletions.