我不知道是那里的两种方法之间的性能方面有什么区别?对此有何好文章?
I was wondering is there any difference in terms of performance between the two approaches? Any good articles on this?
让我们想想在什么实际发生的区别:
Lets think about the difference in what's actually happening:
URL重写:
在IIS接收请求,并将它传递给非托管模块 在模块匹配对一组模式的请求,并返回一个转换 IIS将返回的转型到ASP.NET模块,并开始请求生命周期路由:
在IIS接收请求,并将它传递给ASP.NET ASP.NET匹配针对一组模式的请求,并确定一个切入点处理请求 在ASP.NET开始请求生命周期上的处理程序我会说这两个是如此接近你会pssed求的局面,其中的区别是明显的硬$ P $。
I'd say the two are so close you'd be hard-pressed to find a situation where the difference is noticeable.