I am wondering if there is any relatively easy way to speed up my console load time, which is starting to approach 30 seconds. I have a lot of subclasses whose methods don\
Slightly adapted form that is copy-pastable, wraps all requires, and provides sortable output:
# Add this to the top of boot.rb
require 'benchmark'
def require(file)
puts Benchmark.measure("") {
super
}.format("%t require #{file}")
end
Then you can execute no-op to see them:
rails runner 1
Or sort them and show the top 50:
rails runner 1 | sort -nr | head -n 50