高级闭包编译器 - 有任何性能影响吗?
在线闭包编译器非常棒:
http://closure-compiler.appspot.com/home
但是,当使用高级选项时,它会影响脚本的性能吗? IE,它通常会使其更快或更慢,还是取决于脚本本身?或者根本没有性能影响?
我之所以问这个问题,是因为我编写的一些脚本对性能至关重要,而且我知道这个问题的答案是“尝试看看”,但我不太擅长运行此类测试,我不知道从哪里开始。
The online closure compiler is amazing:
http://closure-compiler.appspot.com/home
However, when using the advanced option, will it affect performance of the script at all? IE, will it make it faster or slower in general, or does it depend on the script itself? Or is there no performance hit at all?
I only ask this as some scripts I write will be performance critical, and I know the answer to this question is "try and see" but I'm not very good at running these sorts of tests, I don't know where to start.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是您可能感兴趣的闭包编译器常见问题解答中的两点。
所以看来这取决于您编写的代码。可能会更快,但也有可能会慢一点。最终,需要进行测试。
Here are two points from the Closure Compilier faq that may interest you.
So it would seem that it will depend on the code you've written. Could be faster, but there's a chance it could be a little slower. Ultimately, testing will be required.