First call to Url.Action on a page is slow
问题 I have a performance issue with a fairly simple ASP.MVC view. It's a log-on page that should be almost instant, but is taking about half a second. After a lot of digging it looks like the problem is the first call the Url.Action - it's taking around 450ms (according to MiniProfiler) but that seems insanely slow. Subsequent calls to Url.Action are taking <1ms, which is more in line with what I would expect. This is consistent whether I use Url.Action("action", "controller") or Url.Action(