{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T04:22:55Z","timestamp":1750220575170,"version":"3.41.0"},"reference-count":56,"publisher":"Association for Computing Machinery (ACM)","issue":"4","license":[{"start":{"date-parts":[[2021,7,23]],"date-time":"2021-07-23T00:00:00Z","timestamp":1626998400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/501100012166","name":"National Key Research and Development Program of China","doi-asserted-by":"publisher","award":["2019YFE0198100"],"award-info":[{"award-number":["2019YFE0198100"]}],"id":[{"id":"10.13039\/501100012166","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100001809","name":"National Natural Science Foundation of China","doi-asserted-by":"publisher","award":["61772347,61972260,61836005,61932021,61802164"],"award-info":[{"award-number":["61772347,61972260,61836005,61932021,61802164"]}],"id":[{"id":"10.13039\/501100001809","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/501100021171","name":"Guangdong Basic and Applied Basic Research Foundation","doi-asserted-by":"crossref","award":["2019A1515011577"],"award-info":[{"award-number":["2019A1515011577"]}],"id":[{"id":"10.13039\/501100021171","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Softw. Eng. Methodol."],"published-print":{"date-parts":[[2021,10,31]]},"abstract":"<jats:p>\n            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&amp;A sites to extracting alternative implementations. On a large dataset of Stack Overflow posts, our approach extracts 5,080\u00a0pairs 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 &gt;10x speedup over its slower alternative. We also characterize 68\u00a0recurring 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,\n            <jats:sc>AlterApi7<\/jats:sc>\n            , to automatically optimize real-world data manipulation programs. In the 1,267\u00a0optimization 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.\n          <\/jats:p>","DOI":"10.1145\/3456873","type":"journal-article","created":{"date-parts":[[2021,7,23]],"date-time":"2021-07-23T10:58:28Z","timestamp":1627037908000},"page":"1-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":3,"title":["Speeding Up Data Manipulation Tasks with Alternative Implementations"],"prefix":"10.1145","volume":"30","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6866-336X","authenticated-orcid":false,"given":"Yida","family":"Tao","sequence":"first","affiliation":[{"name":"Shenzhen University, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Shan","family":"Tang","sequence":"additional","affiliation":[{"name":"Shenzhen University, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8147-8126","authenticated-orcid":false,"given":"Yepang","family":"Liu","sequence":"additional","affiliation":[{"name":"Southern University of Science and Technology, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6727-440X","authenticated-orcid":false,"given":"Zhiwu","family":"Xu","sequence":"additional","affiliation":[{"name":"Shenzhen University, China"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3028-8191","authenticated-orcid":false,"given":"Shengchao","family":"Qin","sequence":"additional","affiliation":[{"name":"Teesside University, UK, and Shenzhen University, China"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2021,7,23]]},"reference":[{"key":"e_1_2_1_1_1","unstructured":"Leonard Richardson. 2007. Beautiful Soup Documentation. (2007).  Leonard Richardson. 2007. Beautiful Soup Documentation. (2007)."},{"key":"e_1_2_1_2_1","unstructured":"Django Software Foundation. 2021. Django. https:\/\/djangoproject.com.  Django Software Foundation. 2021. Django. https:\/\/djangoproject.com."},{"key":"e_1_2_1_3_1","unstructured":"Wikipedia contributors. 2021. Einstein notation. https:\/\/en.wikipedia.org\/wiki\/Einstein_notation.  Wikipedia contributors. 2021. Einstein notation. https:\/\/en.wikipedia.org\/wiki\/Einstein_notation."},{"key":"e_1_2_1_4_1","unstructured":"Stack Exchange. 2021. How to Create a Minimal Reproducible Example. https:\/\/stackoverflow.com\/help\/minimalreproducible-example.  Stack Exchange. 2021. How to Create a Minimal Reproducible Example. https:\/\/stackoverflow.com\/help\/minimalreproducible-example."},{"key":"e_1_2_1_5_1","unstructured":"The IPython Development Team. 2021. IPython built-in magic commands. https:\/\/ipython.readthedocs.io\/en\/stable\/interactive\/magics.html.  The IPython Development Team. 2021. IPython built-in magic commands. https:\/\/ipython.readthedocs.io\/en\/stable\/interactive\/magics.html."},{"key":"e_1_2_1_6_1","unstructured":"Kaggle Inc. 2021. Kaggle. https:\/\/www.kaggle.com\/  Kaggle Inc. 2021. Kaggle. https:\/\/www.kaggle.com\/"},{"key":"e_1_2_1_7_1","unstructured":"Kaggle Inc. 2021. Kaggle Competitions. https:\/\/www.kaggle.com\/competitions\/  Kaggle Inc. 2021. Kaggle Competitions. https:\/\/www.kaggle.com\/competitions\/"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","DOI":"10.1038\/s41586-020-2649-2"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.25080\/Majora-92bf1922-00a"},{"key":"e_1_2_1_10_1","unstructured":"Python Software Foundation. 2021. The Python ast module. https:\/\/docs.python.org\/3\/library\/ast.html.  Python Software Foundation. 2021. The Python ast module. https:\/\/docs.python.org\/3\/library\/ast.html."},{"key":"e_1_2_1_11_1","unstructured":"Python Software Foundation. 2021. Python Qualified Name. https:\/\/docs.python.org\/3\/glossary.html#term-qualifiedname.  Python Software Foundation. 2021. Python Qualified Name. https:\/\/docs.python.org\/3\/glossary.html#term-qualifiedname."},{"key":"e_1_2_1_12_1","unstructured":"Python Software Foundation. 2021. Debugging and Profiling. https:\/\/docs.python.org\/3\/library\/debug.html.  Python Software Foundation. 2021. Debugging and Profiling. https:\/\/docs.python.org\/3\/library\/debug.html."},{"key":"e_1_2_1_13_1","unstructured":"Wikipedia contributors. 2020. Quartile coefficient of dispersion. https:\/\/en.wikipedia.org\/wiki\/Quartile_coefficient_of_dispersion.  Wikipedia contributors. 2020. Quartile coefficient of dispersion. https:\/\/en.wikipedia.org\/wiki\/Quartile_coefficient_of_dispersion."},{"volume-title":"R: A Language and Environment for Statistical Computing","year":"2013","author":"Team R Core","key":"e_1_2_1_14_1"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","DOI":"10.1038\/s41592-019-0686-2"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","DOI":"10.1109\/MCSE.2007.58"},{"volume-title":"Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing. 165--170","author":"Chambers Nathanael","key":"e_1_2_1_17_1"},{"key":"e_1_2_1_18_1","unstructured":"Stack Exchange Inc. 2019. Stack Exchange Data Dump. https:\/\/archive.org\/details\/stackexchange.  Stack Exchange Inc. 2019. Stack Exchange Data Dump. https:\/\/archive.org\/details\/stackexchange."},{"key":"e_1_2_1_19_1","unstructured":"Python Software Foundation. 2021. timeit: Measure execution time of small code snippets. https:\/\/docs.python.org\/3.6\/library\/timeit.html.  Python Software Foundation. 2021. timeit: Measure execution time of small code snippets. https:\/\/docs.python.org\/3.6\/library\/timeit.html."},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/2901739.2903506"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1109\/TSE.2018.2827384"},{"volume-title":"Proceedings of the 26th Annual International Conference on Computer Science and Software Engineering (CASCON\u201916)","author":"Campos Eduardo C.","key":"e_1_2_1_22_1"},{"key":"e_1_2_1_23_1","volume-title":"Measuring Software Redundancy. In 2015 IEEE\/ACM 37th IEEE International Conference on Software Engineering (ICSE'15)","volume":"1","author":"Carzaniga A.","year":"2015"},{"volume-title":"Qualitative Research Using R: A Systematic Approach","author":"Chandra Yanto","key":"e_1_2_1_24_1"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/2970276.2970290"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-018-9657-y"},{"volume-title":"Proceedings of the 16th SIGBioMed Workshop on Biomedical Language Processing (BioNLP'17)","author":"Gupta Samir","key":"e_1_2_1_27_1"},{"volume-title":"Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing (EMNLP'16)","author":"Homa","key":"e_1_2_1_28_1"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3238147.3238208"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/1572272.1572283"},{"key":"e_1_2_1_31_1","volume-title":"2009 31st International Conference on Software Engineering - Companion","volume":"186","author":"Kawrykow D.","year":"2009"},{"volume-title":"32nd European Conference on Object-Oriented Programming (ECOOP\u201918)","year":"2018","author":"Kr\u00fcger Stefan","key":"e_1_2_1_32_1"},{"key":"e_1_2_1_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/2597073.2597085"},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/2568225.2568229"},{"key":"e_1_2_1_35_1","doi-asserted-by":"crossref","first-page":"9","DOI":"10.1109\/TSE.2014.2323982","article-title":"GreenDroid: Automated diagnosis of energy inefficiency for smartphone applications","volume":"40","author":"Liu Yepang","year":"2014","journal-title":"IEEE Transactions on Software Engineering"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-59762-7_2"},{"key":"e_1_2_1_37_1","doi-asserted-by":"publisher","DOI":"10.3115\/v1\/P14-5010"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","DOI":"10.11613\/BM.2012.031"},{"volume-title":"NumPy, and IPython. O\u2019Reilly Media","author":"McKinney Wes","key":"e_1_2_1_39_1"},{"volume-title":"Proceedings of the 39th International Conference on Software Engineering (ICSE\u201917)","year":"2017","author":"Nguyen Trong Duc","key":"e_1_2_1_40_1"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2019.00033"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","DOI":"10.1109\/MIS.2014.76"},{"volume-title":"The life and death of discourse entities: Identifying singleton mentions","author":"Recasens Marta","key":"e_1_2_1_43_1"},{"volume-title":"Proceedings of the 2013 International Conference on Software Engineering (ICSE\u201913)","author":"Peter","key":"e_1_2_1_44_1"},{"key":"e_1_2_1_45_1","unstructured":"David Robinson. 2017. Why is Python Growing So Quickly? https:\/\/stackoverflow.blog\/2017\/09\/14\/python-growing-quickly\/  David Robinson. 2017. Why is Python Growing So Quickly? https:\/\/stackoverflow.blog\/2017\/09\/14\/python-growing-quickly\/"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/322217.322225"},{"volume-title":"2016 IEEE\/ACM 38th International Conference on Software Engineering (ICSE\u201916)","author":"Selakovic M.","key":"e_1_2_1_47_1"},{"volume-title":"2016 IEEE 24th International Conference on Program Comprehension (ICPC\u201916)","year":"2016","author":"Su Fang-Hsiang","key":"e_1_2_1_48_1"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1109\/ASE.2019.00067"},{"volume-title":"Proceedings of the 38th International Conference on Software Engineering (ICSE\u201916)","author":"Treude Christoph","key":"e_1_2_1_50_1"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180194"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSME.2016.11"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/2851613.2851772"},{"key":"e_1_2_1_54_1","first-page":"81","article-title":"Big data analytics","volume":"16","author":"Zakir Jasmine","year":"2015","journal-title":"Issues in Information Systems"},{"key":"e_1_2_1_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/3180155.3180260"},{"key":"e_1_2_1_56_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-03013-0_15"}],"container-title":["ACM Transactions on Software Engineering and Methodology"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3456873","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3456873","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T21:31:26Z","timestamp":1750195886000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3456873"}},"subtitle":["An Exploratory Study"],"short-title":[],"issued":{"date-parts":[[2021,7,23]]},"references-count":56,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2021,10,31]]}},"alternative-id":["10.1145\/3456873"],"URL":"https:\/\/doi.org\/10.1145\/3456873","relation":{},"ISSN":["1049-331X","1557-7392"],"issn-type":[{"type":"print","value":"1049-331X"},{"type":"electronic","value":"1557-7392"}],"subject":[],"published":{"date-parts":[[2021,7,23]]},"assertion":[{"value":"2020-09-01","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2021-03-01","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2021-07-23","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}