We noticed in Skip ActiveJob reloading callback in test env (!40840) · Merge Requests · GitLab.org / GitLab · GitLab that an :around execute callback is setup for ActiveJob. On larger Rails projects this can be slow (0.1 to 0.4 seconds).
It is arguable wether we need code reloading while running specs. The reloader seems to be setup in rails/railtie.rb at 6-0-stable · rails/rails · GitHub. Does it make sense to have a configuration option to skip this reloader, especially for test env ? If so, I am happy to contribute a PR.