Towards safe refactoring for intelligent parallelization of Java 8 streams

Yiming Tang, Raffi Khatchadourian, Mehdi Bagherzadeh, Syed Ahmed
2018 Proceedings of the 40th International Conference on Software Engineering Companion Proceeedings - ICSE '18  
The Java 8 Stream API sets forth a promising new programming model that incorporates functional-like, MapReduce-style features into a mainstream programming language. However, using streams correctly and efficiently may involve subtle considerations. In this poster, we present our ongoing work and preliminary results towards an automated refactoring approach that assists developers in writing optimal stream code. The approach, based on ordering and typestate analysis, determines when it is safe
more » ... and advantageous to convert streams to parallel and optimize parallel streams.
doi:10.1145/3183440.3195098 dblp:conf/icse/TangKBA18 fatcat:marf6gqxorcmvh2nwxtgt7lp7y