Java与Python在Hadoop上(Java vs Python on Hadoop)

编程入门 行业动态 更新时间:2024-10-25 19:22:32
Java与Python在Hadoop上(Java vs Python on Hadoop)

我正在使用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.

更多推荐

本文发布于:2023-07-31 00:15:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1340383.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Java   Python   Hadoop

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!