case sensitive

Sort by: Display: Hide controls:

  1. Juan Pablo Sandoval Alcocer, Marcus Denker, Alexandre Bergel, and Yasett Acurana. Dynamically Composing Collection Operations through Collection Promises. In Proceedings of International Workshop on Smalltalk Technologies (IWST 2016), IWST'16 p. 8:1—8:5, ACM, New York, NY, USA, 2016. DOI 

    Filtering, mapping, and iterating collections are frequent operations. It is known that composing a number of these operations may create intermediate collections causing an additional and unnecessary over- head. To reduce the number of intermediate collections it is often necessary to rewrite the source code and combine the operations. However, for some cases such reduction becomes aplicable only after a source code refactoring (i.e., when the collection operations are in different methods) which could introduce code duplication. In this paper we propose Collection Promises to dynamically compose collection operations in order to reduce the number of unnecessary intermediate collections. Collection Promises delay a number of collection operations and then merge them using com- positions rules. By using Collection Promises developers can auto- matically reduce the intermediate collections even if the collection operations are in different methods.