Reputation: 555
Working with Rails 3, each page load can take anywhere from 10 seconds to a few minutes to load; looking at the output, it seems something is happening behind the scenes, as the time served is listed as 0ms for the vast majority of these files, and yet between each of them it will take 5-10+ seconds to progress to the next one. Several sources recommended RailsDevTweaks, and I have that installed and running, and it does indeed print a message of "RailsDevTweaks: Skipping ActionDispatch::Reloader hooks for this request.", but that doesn't seem to be doing much. Any thoughts here? Let me know what information I can provide to help solve this problem.
Upvotes: 1
Views: 277
Reputation: 2652
Make sure you're not using a host.local tld.
Check out these answers for more details:
Slow assets ruby 1.9.3, macos, rails 3.2
https://serverfault.com/questions/322747/can-a-long-etc-hosts-file-slow-dns-lookup
Upvotes: 2