{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,12]],"date-time":"2026-09-12T02:11:11Z","timestamp":1789179071301,"version":"build-2803163510"},"reference-count":43,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2020,11,13]],"date-time":"2020-11-13T00:00:00Z","timestamp":1605225600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/"}],"funder":[{"DOI":"10.13039\/100011199","name":"European Research Council","doi-asserted-by":"publisher","award":["647544"],"award-info":[{"award-number":["647544"]}],"id":[{"id":"10.13039\/100011199","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,11,13]]},"abstract":"<jats:p>Java 8 introduced streams that allow developers to work with collections of data using functional-style operations. Streams are often used in pipelines of operations for processing the data elements, which leads to concise and elegant program code. However, the declarative data processing style comes at a cost. Compared to processing the data with traditional imperative language mechanisms, constructing stream pipelines requires extra heap objects and virtual method calls, which often results in significant run-time overheads.<\/jats:p>\n          <jats:p>In this work we investigate how to mitigate these overheads to enable processing data in the declarative style without sacrificing performance. We argue that ahead-of-time bytecode-to-bytecode transformation is a suitable approach to optimization of stream pipelines, and we present a static analysis that is designed to guide such transformations. Experimental results show a significant performance gain, and that the technique works for realistic stream pipelines. For 10 of 11 micro-benchmarks, the optimizer is able to produce bytecode that is as effective as hand-written imperative-style code. Additionally, 77% of 6879 stream pipelines found in real-world Java programs are optimized successfully.<\/jats:p>","DOI":"10.1145\/3428236","type":"journal-article","created":{"date-parts":[[2020,11,24]],"date-time":"2020-11-24T23:40:14Z","timestamp":1606261214000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":12,"title":["Eliminating abstraction overhead of Java stream pipelines using ahead-of-time program optimization"],"prefix":"10.1145","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-1333-2314","authenticated-orcid":false,"given":"Anders","family":"M\u00f8ller","sequence":"first","affiliation":[{"name":"Aarhus University, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Oskar Haarklou","family":"Veileborg","sequence":"additional","affiliation":[{"name":"Aarhus University, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2020,11,13]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.15439\/2015F156"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-49538-X_2"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1109\/JPROC.2004.840305"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/351397.351416"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/857076.857077"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2015.591"},{"key":"e_1_2_2_7_1","unstructured":"Aggelos Biboudis Nick Palladinos and Yannis Smaragdakis. 2014. Clash of the Lambdas. CoRR abs\/1406.6631 ( 2014 ). arXiv: 1406. 6631  Aggelos Biboudis Nick Palladinos and Yannis Smaragdakis. 2014. Clash of the Lambdas. CoRR abs\/1406.6631 ( 2014 ). arXiv: 1406. 6631"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/1640089.1640108"},{"key":"e_1_2_2_9_1","doi-asserted-by":"crossref","unstructured":"Zoran Budimlic and Ken Kennedy. 1997. Optimizing Java: theory and practice. Concurrency-Practice and Experience 9 6 ( 1997 ) 445-463.  Zoran Budimlic and Ken Kennedy. 1997. Optimizing Java: theory and practice. Concurrency-Practice and Experience 9 6 ( 1997 ) 445-463.","DOI":"10.1002\/(SICI)1096-9128(199706)9:6<445::AID-CPE301>3.0.CO;2-L"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/12276.13327"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/93542.93585"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/320384.320386"},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-49538-X_5"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-48743-3_12"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/286936.286943"},{"key":"e_1_2_2_17_1","unstructured":"Julian Dolby Stephen J. Fink and Manu Sridharan. 2010. T.J. Watson Libraries for Analysis. http:\/\/wala.sourceforge.net\/  Julian Dolby Stephen J. Fink and Manu Sridharan. 2010. T.J. Watson Libraries for Analysis. http:\/\/wala.sourceforge.net\/"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1297027.1297033"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/2774975.2774981"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1007\/BF00290339"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2020.102476"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-45234-6_5"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3093333.3009880"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-36579-6_12"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3133909"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10664-017-9512-6"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/1993498.1993513"},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/996821.996836"},{"key":"e_1_2_2_29_1","unstructured":"Oracle. 2014a. Java Microbenchmarking Harness. http:\/\/openjdk.java.net\/projects\/code-tools\/jmh\/  Oracle. 2014a. Java Microbenchmarking Harness. http:\/\/openjdk.java.net\/projects\/code-tools\/jmh\/"},{"key":"e_1_2_2_30_1","unstructured":"Oracle. 2014b. java.util.stream documentation for JDK 8. https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/java\/util\/stream\/packagesummary.html  Oracle. 2014b. java.util.stream documentation for JDK 8. https:\/\/docs.oracle.com\/javase\/8\/docs\/api\/java\/util\/stream\/packagesummary.html"},{"key":"e_1_2_2_31_1","unstructured":"Oracle. 2014c. JDK 8. https:\/\/openjdk.java.net\/projects\/jdk8\/  Oracle. 2014c. JDK 8. https:\/\/openjdk.java.net\/projects\/jdk8\/"},{"key":"e_1_2_2_32_1","unstructured":"Nick Palladinos and Kostas Rontogiannis. 2014. LinqOptimizer: An automatic query optimizer for LINQ to Objects and PLINQ. http:\/\/nessos.github.io\/LinqOptimizer\/  Nick Palladinos and Kostas Rontogiannis. 2014. LinqOptimizer: An automatic query optimizer for LINQ to Objects and PLINQ. http:\/\/nessos.github.io\/LinqOptimizer\/"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/143095.143125"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/3136000.3136002"},{"key":"e_1_2_2_35_1","unstructured":"Aleksandar Prokopec and Dmitry Petrashko. 2013. ScalaBlitz: Lightning-fast Scala collections framework. https:\/\/scalablitz.github.io\/  Aleksandar Prokopec and Dmitry Petrashko. 2013. ScalaBlitz: Lightning-fast Scala collections framework. https:\/\/scalablitz.github.io\/"},{"key":"e_1_2_2_36_1","unstructured":"John Rose. 2015. Hotspot-dev mailing list: Perspectives on Streams Performance. http:\/\/mail.openjdk.java.net\/pipermail\/ hotspot-compiler-dev\/2015-March\/017278.html  John Rose. 2015. Hotspot-dev mailing list: Perspectives on Streams Performance. http:\/\/mail.openjdk.java.net\/pipermail\/ hotspot-compiler-dev\/2015-March\/017278.html"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/778559.778561"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/3241653.3241660"},{"key":"e_1_2_2_39_1","first-page":"189","article-title":"Two approaches to interprocedural data flow analysis. Prentice-Hall","volume":"7","author":"Sharir Micha","year":"1981","unstructured":"Micha Sharir and Amir Pnueli . 1981 . Two approaches to interprocedural data flow analysis. Prentice-Hall , Chapter 7 , 189 - 234 . Micha Sharir and Amir Pnueli. 1981. Two approaches to interprocedural data flow analysis. Prentice-Hall, Chapter 7, 189-234.","journal-title":"Chapter"},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926390"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP.2016.22"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1145\/1133981.1134027"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(90)90147-A"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/114005.102806"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428236","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3428236","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T22:02:57Z","timestamp":1750197777000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428236"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,11,13]]},"references-count":43,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2020,11,13]]}},"alternative-id":["10.1145\/3428236"],"URL":"https:\/\/doi.org\/10.1145\/3428236","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,11,13]]},"assertion":[{"value":"2020-11-13","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}