arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1712.03320cs.DB
收藏

原始数据处理的代码生成技术

Code Generation Techniques for Raw Data Processing

Xin Zhang

摘要:

目前研究的动机是设计一种算法,可以加快查询的处理。重要的特性是为特定的查询动态生成代码。我们提出的代码生成技术,适用于原始文件的查询处理。其思想是使用给定的查询定制查询程序,并生成特定于机器和查询的源代码。生成的代码由GCC、Clang或任何其他C/C++编译器编译,编译后的文件动态链接到主程序以进行进一步处理。代码生成降低了一般化查询处理的成本。它还避免了在实现高性能的常规解释的开销。数据库管理系统(DBMS)在大数据的许多方面都表现出色,例如存储,索引和分析。DBMS通常格式化整个数据并将其加载到其存储层中。它们增加了数据查询时间,这是将数据转换为特定模式并将其持久化在磁盘中所花费的成本时间。理想情况下,DBMS应该适应输入数据,并提取与给定查询相关联的一个/一些列,而不是整个数据。因此,原始文件上的查询引擎可以减少常规常规操作的成本,并避免一些不必要的过程,如完全扫描,标记化和配对整个数据。在目前的研究中,我们介绍了我们的代码生成方法,在原位处理的原始文件,这是基于模板的方法和炒作的方法。该方法最大限度地减少了数据查询的时间,并实现了高性能的查询处理。我们的工作有一些好处:减少分支和指令,展开循环,消除不必要的数据类型检查和优化二进制代码与本地机器上的编译器。

英文摘要:

The motivation of the current study was to design an algorithm that can speed up the processing of a query. The important feature is generating code dynamically for a specific query. We present the technique of code generation that is applied to query processing on a raw file. The idea was to customize a query program with a given query and generate a machine- and query-specific source code. The generated code is compiled by GCC, Clang or any other C/C++ compiler, and the compiled file is dynamically linked to the main program for further processing. Code generation reduces the cost of generalizing query processing. It also avoids the overhead of the conventional interpretation during achieve high performance. Database Management Systems (DBMSs) perform excellent jobs in many aspects of big data, such as storage, indexing, and analysis. DBMSs typically format entire data and load them into their storage layer. They increase data-to-query time, which is the cost time it takes to convert data into a specific schema and persist them in a disk. Ideally, DBMSs should adapt to the input data and extract one/some of columns, not the entire data, that is/are associated with a given query. Therefore, the query engine on a raw file can reduce the cost of conventional general operators and avoid some unnecessary procedures, such as fully scanning, tokenizing and paring the whole data. In the current study, we introduce our code-generation approach for in-situ processing of raw files, which is based on the template approach and the hype approach. The approach minimizes the data-to-query time and achieves a high performance for query processing. There are some benefits from our work: reducing branches and instructions, unrolling loops, eliminating unnecessary data type checks and optimizing the binary code with a compiler on a local machine.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑