Skip to content

Remove unneeded require of `rspec/core/project_initializer`.

gitlab-qa-bot requested to merge remove_unneeded_require into master

Created by: myronmarston

Each require takes time and it is a waste to require a file like this that is so rarely used up front. Things that are rarely used should be required at the point they are used rather than upfront.

@alindeman / @JonRowe / @soulcutter / @samphippen -- I'd like us to be more intentional about when we require files. Requires add to the rspec boot time. We should see where else we are requiring files unnecessarily. It might also be worth looking into moving the contents of some smaller files into another one to cut down on the number of requires, given that known perf problems with require on 1.9. We shouldn't go too crazy and sacrifice maintainability, but I am curious to see how much it would help boot time to combine stuff into one file, just so we know how much of an affect it has.

Merge request reports