So i'm playing around with an idea.. and measuring some performance.... I have 2 handler factories, and one handler defined. first hanlder factory simply returns: return PageParser.GetCompiledPageInstance(url, pathTranslated, context); second handler factory
returns return new IndexPage(); third is a straight handler, and it just context.Response.Write("Hello"); setting IsReusable to true or false has no affect on the performance, I'm not really interested in that. My interest is in the handlerfactories.... returning
a new instance of a class that inherits from System.Web.UI.Page, is 3 times slower than returning PageParser.GetCompiledPageInstance.... Why? What magic does it perform to get 3 times more speed... It compiles it, yeah, but my page objects are compiled too...
How how how?!
Malby
Member
185 Points
37 Posts
IHttpHandler, IHttpHandlerFactory, Returning instances of pages...
Nov 12, 2003 11:50 AM|LINK