我正在使用Hadoop开发一个项目,它似乎本土地结合了Java并为Python提供流式支持。 对另一个选择有显着的性能影响吗? 我在这个过程中足够早,我可以以任何方式去,如果有一个显着的性能差异的一种方式或另一种。
I am working on a project using Hadoop and it seems to natively incorporate Java and provide streaming support for Python. Is there is a significant performance impact to choosing one over the other? I am early enough in the process where I can go either way if there is a significant performance difference one way or the other.
最满意答案
Java比Python更动态,并且更多的努力已经被放入其虚拟机,使其成为一种更快的语言。 Python也被其Global Interpreter Lock阻止,这意味着它不能将单个进程的线程推送到不同的核心上。
这是否有显着差异取决于您打算做什么。 我怀疑这两种语言都会为你工作。
Java is less dynamic than Python and more effort has been put into its VM, making it a faster language. Python is also held back by its Global Interpreter Lock, meaning it cannot push threads of a single process onto different core.
Whether this makes any significant difference depends on what you intend to do. I suspect both languages will work for you.
更多推荐
发布评论