Monday, April 13, 2009

HttpResponse.Close instead of HttpResponse.End

When profiling my application, I noticed that Response.End takes more time to execute than Response.Close. I'm guessing this is because Response.End causes a ThreadAbortException and .NET's handling of the exception causes the overhead.

No comments:

Post a Comment