HiFrames:脚本语言中的高性能数据帧
HiFrames: High Performance Data Frames in a Scripting Language
摘要:
脚本语言中的数据帧是处理结构化数据的基本抽象。然而,现有的数据帧解决方案要么不是分布式的(例如,Python中的Pandas),因此具有有限的可扩展性,或者它们没有与数组计算紧密集成(例如,Spark SQL)。本文提出了一种新的基于编译器的方法,我们将数据帧集成到高性能分析工具包(HPAT)构建HiFrames。它提供了富有表现力和灵活的数据帧API,这些API与数组操作紧密集成。然后,HiFrames自动并行化和编译关系操作以及端到端数据分析程序中的其他数组计算,并生成高效的MPI/C++代码。我们证明了HiFrames比集群上的Spark SQL等替代方案要快得多,而不会迫使程序员在程序的一部分切换到嵌入式SQL。HiFrames对于基本的关系操作比Spark SQL快3.6倍到70倍,对于高级分析操作(例如加权移动平均值(WMA)),速度可以快20,000倍,而map-reduce范式无法有效处理。在Cori超级计算机的64个节点上,HiFrames也比TPCx-BB Q26的Spark SQL快5倍。
英文摘要:
Data frames in scripting languages are essential abstractions for processing structured data. However, existing data frame solutions are either not distributed (e.g., Pandas in Python) and therefore have limited scalability, or they are not tightly integrated with array computations (e.g., Spark SQL). This paper proposes a novel compiler-based approach where we integrate data frames into the High Performance Analytics Toolkit (HPAT) to build HiFrames. It provides expressive and flexible data frame APIs which are tightly integrated with array operations. HiFrames then automatically parallelizes and compiles relational operations along with other array computations in end-to-end data analytics programs, and generates efficient MPI/C++ code. We demonstrate that HiFrames is significantly faster than alternatives such as Spark SQL on clusters, without forcing the programmer to switch to embedded SQL for part of the program. HiFrames is 3.6x to 70x faster than Spark SQL for basic relational operations, and can be up to 20,000x faster for advanced analytics operations, such as weighted moving averages (WMA), that the map-reduce paradigm cannot handle effectively. HiFrames is also 5x faster than Spark SQL for TPCx-BB Q26 on 64 nodes of Cori supercomputer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。