Bringing Efficiency and Applicability to User-Defined Functions by WebAssembly

With the continuous evolution of database technology, numerous databases and query analysis engines have begun to incorporate user-defined functions into SQL. These functions enable users to express their unique data processing logic. However, Python, being the most commonly used language for implementing such functions, faces certain performance and applicability challenges. In this paper, we propose the utilization of WebAssembly for implementing user-defined functions. WebAssembly offers significant performance advantages over Python and supports compilation from multiple languages, thereby allowing users to leverage their preferred programming languages for writing user-defined functions. This approach enhances the overall applicability of user-defined functions. Furthermore, we introduce several performance optimization strategies for WebAssembly-based user-defined functions. These include leveraging a sophisticated user-defined functions execution engine, employing JIT compilation, and utilizing vectorization technology. These optimizations contribute significantly to enhancing the performance of WebAssembly-based user-defined functions.

Authors

Institutions

Publication Details

Published
2024-12-13
DOI
https://doi.org/10.1109/iccc62609.2024.10942005
Primary Topic
Manufacturing Process and Optimization
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Bringing Efficiency and Applicability to User-Defined Functions by WebAssembly

Jiali Bian, Jiajun Wu
Manufacturing Process and Optimization
article

Bringing Efficiency and Applicability to User-Defined Functions by WebAssembly

Jiali Bian, Jiajun Wu
article en

Abstract

With the continuous evolution of database technology, numerous databases and query analysis engines have begun to incorporate user-defined functions into SQL. These functions enable users to express their unique data processing logic. However, Python, being the most commonly used language for implementing such functions, faces certain performance and applicability challenges. In this paper, we propose the utilization of WebAssembly for implementing user-defined functions. WebAssembly offers significant performance advantages over Python and supports compilation from multiple languages, thereby allowing users to leverage their preferred programming languages for writing user-defined functions. This approach enhances the overall applicability of user-defined functions. Furthermore, we introduce several performance optimization strategies for WebAssembly-based user-defined functions. These include leveraging a sophisticated user-defined functions execution engine, employing JIT compilation, and utilizing vectorization technology. These optimizations contribute significantly to enhancing the performance of WebAssembly-based user-defined functions.

Beijing University of Posts and Telecommunications (CN)
Openalex Percentile: Top 57%
Manufacturing Process and Optimization
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.