Jython Web 应用程序性能
我目前正在构建 Jython Web 应用程序,但我担心 Jython 应用程序性能。让我感到欣慰的是,我可以在单独的 Java jar 中编写任何计算密集型任务并从 Jython 调用它们。有没有人在这样做时遇到问题,或者预见到这样的设置会出现问题?
I'm currently building a Jython web app but am concerned about Jython application performance. I take some comfort in that any compute intensive tasks I can write in a separate Java jar and invoke them from Jython. Has anyone had problems doing this, or forsee issues with such a setup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您会在这里找到一个很好的比较: http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/
Jython 速度较慢,但取决于你想要什么要做的话,这可能不是什么大问题。我使用 Jython 主要是为了允许我动态调试应用程序,它对此非常有用。
You'll find a nice comparison here: http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/
Jython is slower, but depending on what you want to do, that may not be a big problem. I use Jython primarily for allowing me to debug the application on the fly, and it works great for this.
一如既往,我会将一些东西放在一起(原型等)并进行测量。我相信,这是您获得有意义答案的唯一方式。
As always, I would put something together (a prototype etc.) and measure it. That's the only way you're going to get a meaningful answer, I believe.