Reputation: 5405
I noticed long render times for a page with a user's account on one of my company's websites. I turned tracing on locally and accessed his account from my development machine, and it as 75 seconds of rendering that I can't find. I added tracing through both the master and child aspx
files, but even after the last bit of code (a foreach) in the child page is called, there is another 75 seconds of something happening.
Trace results.
Half a second makes sense (cleaning up something, I don't know what), but 75 makes NO sense.
Upvotes: 3
Views: 142
Reputation: 6763
Make sure you've closed every object you've instantiated that has an IDisposable interface.
Upvotes: 0
Reputation: 15901
I think you realy have some code in the views that takes some time, but the 76 seconds might be spent by ASP.NET MVC rendering itself.
This can happen when you have a couple Html helpers (typically action links) that use routing and you have a good amount of entries in the routing table. Try to render the page with most of the helpers removed to check if this is the case.
Upvotes: 2