IHTTPModule 性能受到影响吗?
我正在实现一个 IHttpModule,如这个问题。由于我们正在检查每个请求,因此我担心性能可能会受到影响。有人在实现 IHttpModule 时遇到过性能问题吗?
I'm implementing an IHttpModule as described in this question. Since we're examining every request, I'm worried there may be a performance hit. Has anyone run into performance issues implementing IHttpModules?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于它正在做什么……管道中存在如此多的事件,您可能不知道这实际上是“杯水车薪”的情况。
如果它做了很多繁重的事情,就会产生影响(它必须是真正的重...或者在很多点击中扩展)。如果它是小/轻的东西......你不会注意到它的存在。
It depends what it's doing...there are so many events in the pipeline that you probably don't know about it's really a "drop in the bucket" situation overall.
If it's does a lot of heavy stuff, it'll have an impact (it'd have to be real heavy...or scale across a lot of hits). If it's something small/light...you won't notice it's there.