arrow
Return

Speeding Up Data Manipulation Tasks with Alternative Implementations: An Exploratory Study

delete2021-07-23
delete1
PRE
AI
Y
Yida Tao
唐
唐山 (Shan Tang)
Y
Yepang Liu
Z
Zhiwu Xu
S
Shengchao Qin *
DOI:10.1145/3456873delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
As data volume and complexity grow at an unprecedented rate, the performance of data manipulation programs is becoming a major concern for developers. In this article, we study how alternative API choices could improve data manipulation performance while preserving task-specific input/output equivalence. We propose a lightweight approach that leverages the comparative structures in Q&A sites to extracting alternative implementations. On a large dataset of Stack Overflow posts, our approach extracts 5,080 pairs of alternative implementations that invoke different data manipulation APIs to solve the same tasks, with an accuracy of 86%. Experiments show that for 15% of the extracted pairs, the faster implementation achieved >10x speedup over its slower alternative. We also characterize 68 recurring alternative API pairs from the extraction results to understand the type of APIs that can be used alternatively. To put these findings into practice, we implement a tool, AlterApi, to automatically optimize real-world data manipulation programs. In the 1,267 optimization attempts on the Kaggle dataset, 76% achieved desirable performance improvements with up to orders-of-magnitude speedup. Finally, we discuss notable challenges of using alternative APIs for optimizing data manipulation programs. We hope that our study offers a new perspective on API recommendation and automatic performance optimization.
Keywords:
API selection
data manipulation
performance optimization
mining software repository
empirical study
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.2K
Citations:
3.4K

Organization

U
university of teesside
Scholars:
1.6K
Papers: 1.8K
Citations: 3
S
shenzhen university
Scholars:
4.6W
Papers: 3.4W
Citations: 72
Cited Papers

Cited Papers

Green Corrosion Inhibition
err2024-02-02
err0
PREAI
errBharti Sheokand; Seema R. Pathak; Chandan K. Mandal; Drishti Gupta; Deepti Verma; Kamalakanta Behera; Ambrish Kumar; Monika Vats; Shruti Trivedi
errShare
errSave
The nature of the relationship of psychomotor slowing with negative symptomatology in schizophrenia
err2013-06-03
err0
PREAI
errChris Bervoets; Lise Docx; Bernard Sabbe; Sara Vermeylen; Maarten J. Van Den Bossche; Anne Morsel; Manuel Morrens
errShare
errSave
A Systematic Evaluation of Static API-Misuse Detectors
err2019-12-01
err73
errOAAI
errAmann, Sven; Hoan Anh Nguyen; Nadi, Sarah; Nguyen, Tien N.; Mezini, Mira
errShare
errSave
SciPy 1.0: fundamental algorithms for scientific computing in Python
err2020-02-03
err2.1W
errOAAI
errVirtanen, Pauli; Gommers, Ralf; Oliphant, Travis E.; Haberland, Matt; Reddy, Tyler; Cournapeau, David; Burovski, Evgeni; Peterson, Pearu; Weckesser, Warren; Bright, Jonathan; van der Walt, Stefan J.; Brett, Matthew; Wilson, Joshua; Millman, K. Jarrod; Mayorov, Nikolay; Nelson, Andrew R. J.; Jones, Eric; Kern, Robert; Larson, Eric; Carey, C. J.; Polat, Ilhan; Feng, Yu; Moore, Eric W.; VanderPlas, Jake; Laxalde, Denis; Perktold, Josef; Cimrman, Robert; Henriksen, Ian; Quintero, E. A.; Harris, Charles R.; Archibald, Anne M.; Ribeiro, Antonio H.; Pedregosa, Fabian; van Mulbregt, Paul
errShare
errSave
errShare
errSave
Swarming and Behaviour in Antarctic Krill
err2016-08-04
err0
PREAI
errGeraint A. Tarling; Sophie Fielding
errShare
errSave
Neonatal Characteristics as Risk Factors for Preschool Asthma
err2009-07-02
err0
PREAI
errDouglas Schaubel; Helen Johansen; Mrinal Dutta; Marie Desmeules; Allan Becker; Yang Mao
errShare
errSave
researcher View more