1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
|
@inproceedings{jung_brainy_2011,
location = {New York, {NY}, {USA}},
title = {Brainy: Effective Selection of Data Structures},
isbn = {978-1-4503-0663-8},
url = {https://doi.org/10.1145/1993498.1993509},
doi = {10.1145/1993498.1993509},
series = {{PLDI} '11},
abstract = {Data structure selection is one of the most critical aspects of developing effective applications. By analyzing data structures' behavior and their interaction with the rest of the application on the underlying architecture, tools can make suggestions for alternative data structures better suited for the program input on which the application runs. Consequently, developers can optimize their data structure usage to make the application conscious of an underlying architecture and a particular program input.This paper presents the design and evaluation of Brainy, a new program analysis tool that automatically selects the best data structure for a given program and its input on a specific microarchitecture. The data structure's interface functions are instrumented to dynamically monitor how the data structure interacts with the application for a given input. The instrumentation records traces of various runtime characteristics including underlying architecture-specific events. These generated traces are analyzed and fed into an offline model, constructed using machine learning, to select the best data structure. That is, Brainy exploits runtime feedback of data structures to model the situation an application runs on, and selects the best data structure for a given application/input/architecture combination based on the constructed model. The empirical evaluation shows that this technique is highly accurate across several real-world applications with various program input sets on two different state-of-the-art microarchitectures. Consequently, Brainy achieved an average performance improvement of 27\% and 33\% on both microarchitectures, respectively.},
pages = {86--97},
booktitle = {Proceedings of the 32nd {ACM} {SIGPLAN} Conference on Programming Language Design and Implementation},
publisher = {Association for Computing Machinery},
author = {Jung, Changhee and Rus, Silvius and Railing, Brian P. and Clark, Nathan and Pande, Santosh},
date = {2011},
note = {event-place: San Jose, California, {USA}},
keywords = {application generator, data structure selection, performance counters, training framework},
}
@inproceedings{thomas_framework_2005,
location = {New York, {NY}, {USA}},
title = {A Framework for Adaptive Algorithm Selection in {STAPL}},
isbn = {1-59593-080-9},
url = {https://doi.org/10.1145/1065944.1065981},
doi = {10.1145/1065944.1065981},
series = {{PPoPP} '05},
abstract = {Writing portable programs that perform well on multiple platforms or for varying input sizes and types can be very difficult because performance is often sensitive to the system architecture, the run-time environment, and input data characteristics. This is even more challenging on parallel and distributed systems due to the wide variety of system architectures. One way to address this problem is to adaptively select the best parallel algorithm for the current input data and system from a set of functionally equivalent algorithmic options. Toward this goal, we have developed a general framework for adaptive algorithm selection for use in the Standard Template Adaptive Parallel Library ({STAPL}). Our framework uses machine learning techniques to analyze data collected by {STAPL} installation benchmarks and to determine tests that will select among algorithmic options at run-time. We apply a prototype implementation of our framework to two important parallel operations, sorting and matrix multiplication, on multiple platforms and show that the framework determines run-time tests that correctly select the best performing algorithm from among several competing algorithmic options in 86-100\% of the cases studied, depending on the operation and the system.},
pages = {277--288},
booktitle = {Proceedings of the Tenth {ACM} {SIGPLAN} Symposium on Principles and Practice of Parallel Programming},
publisher = {Association for Computing Machinery},
author = {Thomas, Nathan and Tanase, Gabriel and Tkachyshyn, Olga and Perdue, Jack and Amato, Nancy M. and Rauchwerger, Lawrence},
date = {2005},
note = {event-place: Chicago, {IL}, {USA}},
keywords = {ml, read},
}
@inproceedings{osterlund_dynamically_2013,
title = {Dynamically transforming data structures},
doi = {10.1109/ASE.2013.6693099},
pages = {410--420},
booktitle = {2013 28th {IEEE}/{ACM} International Conference on Automated Software Engineering ({ASE})},
author = {Österlund, Erik and Löwe, Welf},
date = {2013},
keywords = {read, rules-based},
}
@inproceedings{franke_collection_2022,
location = {New York, {NY}, {USA}},
title = {Collection Skeletons: Declarative Abstractions for Data Collections},
isbn = {978-1-4503-9919-7},
url = {https://doi.org/10.1145/3567512.3567528},
doi = {10.1145/3567512.3567528},
series = {{SLE} 2022},
abstract = {Modern programming languages provide programmers with rich abstractions for data collections as part of their standard libraries, e.g. Containers in the C++ {STL}, the Java Collections Framework, or the Scala Collections {API}. Typically, these collections frameworks are organised as hierarchies that provide programmers with common abstract data types ({ADTs}) like lists, queues, and stacks. While convenient, this approach introduces problems which ultimately affect application performance due to users over-specifying collection data types limiting implementation flexibility. In this paper, we develop Collection Skeletons which provide a novel, declarative approach to data collections. Using our framework, programmers explicitly select properties for their collections, thereby truly decoupling specification from implementation. By making collection properties explicit immediate benefits materialise in form of reduced risk of over-specification and increased implementation flexibility. We have prototyped our declarative abstractions for collections as a C++ library, and demonstrate that benchmark applications rewritten to use Collection Skeletons incur little or no overhead. In fact, for several benchmarks, we observe performance speedups (on average between 2.57 to 2.93, and up to 16.37) and also enhanced performance portability across three different hardware platforms.},
pages = {189--201},
booktitle = {Proceedings of the 15th {ACM} {SIGPLAN} International Conference on Software Language Engineering},
publisher = {Association for Computing Machinery},
author = {Franke, Björn and Li, Zhibo and Morton, Magnus and Steuwer, Michel},
date = {2022},
note = {event-place: Auckland, New Zealand},
keywords = {read, functional requirements},
file = {Accepted Version:/home/aria/Zotero/storage/TJ3AGL2S/Franke et al. - 2022 - Collection Skeletons Declarative Abstractions for.pdf:application/pdf},
}
@article{qin_primrose_2023,
title = {Primrose: Selecting Container Data Types by Their Properties},
volume = {7},
issn = {2473-7321},
url = {http://arxiv.org/abs/2205.09655},
doi = {10.22152/programming-journal.org/2023/7/11},
shorttitle = {Primrose},
abstract = {Context: Container data types are ubiquitous in computer programming, enabling developers to efficiently store and process collections of data with an easy-to-use programming interface. Many programming languages offer a variety of container implementations in their standard libraries based on data structures offering different capabilities and performance characteristics. Inquiry: Choosing the *best* container for an application is not always straightforward, as performance characteristics can change drastically in different scenarios, and as real-world performance is not always correlated to theoretical complexity. Approach: We present Primrose, a language-agnostic tool for selecting the best performing valid container implementation from a set of container data types that satisfy *properties* given by application developers. Primrose automatically selects the set of valid container implementations for which the *library specifications*, written by the developers of container libraries, satisfies the specified properties. Finally, Primrose ranks the valid library implementations based on their runtime performance. Knowledge: With Primrose, application developers can specify the expected behaviour of a container as a type refinement with *semantic properties*, e.g., if the container should only contain unique values (such as a `set`) or should satisfy the {LIFO} property of a `stack`. Semantic properties nicely complement *syntactic properties* (i.e., traits, interfaces, or type classes), together allowing developers to specify a container's programming interface *and* behaviour without committing to a concrete implementation. Grounding: We present our prototype implementation of Primrose that preprocesses annotated Rust code, selects valid container implementations and ranks them on their performance. The design of Primrose is, however, language-agnostic, and is easy to integrate into other programming languages that support container data types and traits, interfaces, or type classes. Our implementation encodes properties and library specifications into verification conditions in Rosette, an interface for {SMT} solvers, which determines the set of valid container implementations. We evaluate Primrose by specifying several container implementations, and measuring the time taken to select valid implementations for various combinations of properties with the solver. We automatically validate that container implementations conform to their library specifications via property-based testing. Importance: This work provides a novel approach to bring abstract modelling and specification of container types directly into the programmer's workflow. Instead of selecting concrete container implementations, application programmers can now work on the level of specification, merely stating the behaviours they require from their container types, and the best implementation can be selected automatically.},
pages = {11},
number = {3},
journaltitle = {The Art, Science, and Engineering of Programming},
shortjournal = {Programming},
author = {Qin, Xueying and O'Connor, Liam and Steuwer, Michel},
urldate = {2023-09-25},
date = {2023-02-15},
eprinttype = {arxiv},
eprint = {2205.09655 [cs]},
keywords = {read, functional requirements},
file = {arXiv Fulltext PDF:/home/aria/Zotero/storage/IL59NESA/Qin et al. - 2023 - Primrose Selecting Container Data Types by Their .pdf:application/pdf;arXiv.org Snapshot:/home/aria/Zotero/storage/DCIW4XE4/2205.html:text/html},
}
@inproceedings{costa_collectionswitch_2018,
location = {Vienna Austria},
title = {{CollectionSwitch}: a framework for efficient and dynamic collection selection},
isbn = {978-1-4503-5617-6},
url = {https://dl.acm.org/doi/10.1145/3168825},
doi = {10.1145/3168825},
shorttitle = {{CollectionSwitch}},
eventtitle = {{CGO} '18: 16th Annual {IEEE}/{ACM} International Symposium on Code Generation and Optimization},
pages = {16--26},
booktitle = {Proceedings of the 2018 International Symposium on Code Generation and Optimization},
publisher = {{ACM}},
author = {Costa, Diego and Andrzejak, Artur},
urldate = {2023-09-21},
date = {2018-02-24},
langid = {english},
keywords = {read, estimate-based},
file = {Costa and Andrzejak - 2018 - CollectionSwitch a framework for efficient and dy:/home/aria/Zotero/storage/7B8QMVRU/Costa and Andrzejak - 2018 - CollectionSwitch a framework for efficient and dy:application/pdf},
}
@inproceedings{shacham_chameleon_2009,
location = {Dublin Ireland},
title = {Chameleon: adaptive selection of collections},
isbn = {978-1-60558-392-1},
url = {https://dl.acm.org/doi/10.1145/1542476.1542522},
doi = {10.1145/1542476.1542522},
shorttitle = {Chameleon},
eventtitle = {{PLDI} '09: {ACM} {SIGPLAN} Conference on Programming Language Design and Implementation},
pages = {408--418},
booktitle = {Proceedings of the 30th {ACM} {SIGPLAN} Conference on Programming Language Design and Implementation},
publisher = {{ACM}},
author = {Shacham, Ohad and Vechev, Martin and Yahav, Eran},
urldate = {2023-09-21},
date = {2009-06-15},
langid = {english},
keywords = {read, rules-based},
file = {Shacham et al. - 2009 - Chameleon adaptive selection of collections.pdf:/home/aria/Zotero/storage/75CS9CWY/Shacham et al. - 2009 - Chameleon adaptive selection of collections.pdf:application/pdf},
}
@incollection{hutchison_coco_2013,
location = {Berlin, Heidelberg},
title = {{CoCo}: Sound and Adaptive Replacement of Java Collections},
volume = {7920},
isbn = {978-3-642-39037-1 978-3-642-39038-8},
url = {http://link.springer.com/10.1007/978-3-642-39038-8_1},
shorttitle = {{CoCo}},
pages = {1--26},
booktitle = {{ECOOP} 2013 – Object-Oriented Programming},
publisher = {Springer Berlin Heidelberg},
author = {Xu, Guoqing},
editor = {Castagna, Giuseppe},
editorb = {Hutchison, David and Kanade, Takeo and Kittler, Josef and Kleinberg, Jon M. and Mattern, Friedemann and Mitchell, John C. and Naor, Moni and Nierstrasz, Oscar and Pandu Rangan, C. and Steffen, Bernhard and Sudan, Madhu and Terzopoulos, Demetri and Tygar, Doug and Vardi, Moshe Y. and Weikum, Gerhard},
editorbtype = {redactor},
urldate = {2023-10-17},
date = {2013},
doi = {10.1007/978-3-642-39038-8_1},
note = {Series Title: Lecture Notes in Computer Science},
keywords = {read, rules-based},
}
@inproceedings{l_liu_perflint_2009,
title = {Perflint: A Context Sensitive Performance Advisor for C++ Programs},
doi = {10.1109/CGO.2009.36},
eventtitle = {2009 International Symposium on Code Generation and Optimization},
pages = {265--274},
booktitle = {2009 International Symposium on Code Generation and Optimization},
author = {{L. Liu} and {S. Rus}},
date = {2009-03-22},
note = {Journal Abbreviation: 2009 International Symposium on Code Generation and Optimization},
keywords = {read, rules-based},
file = {Full Text:/home/aria/Zotero/storage/KTJNYCES/L. Liu and S. Rus - 2009 - Perflint A Context Sensitive Performance Advisor .pdf:application/pdf},
}
@article{jung_brainy_2011-1,
title = {Brainy: effective selection of data structures},
volume = {46},
issn = {0362-1340, 1558-1160},
url = {https://dl.acm.org/doi/10.1145/1993316.1993509},
doi = {10.1145/1993316.1993509},
shorttitle = {Brainy},
abstract = {Data structure selection is one of the most critical aspects of developing effective applications. By analyzing data structures' behavior and their interaction with the rest of the application on the underlying architecture, tools can make suggestions for alternative data structures better suited for the program input on which the application runs. Consequently, developers can optimize their data structure usage to make the application conscious of an underlying architecture and a particular program input.
This paper presents the design and evaluation of Brainy, a new program analysis tool that automatically selects the best data structure for a given program and its input on a specific microarchitecture. The data structure's interface functions are instrumented to dynamically monitor how the data structure interacts with the application for a given input. The instrumentation records traces of various runtime characteristics including underlying architecture-specific events. These generated traces are analyzed and fed into an offline model, constructed using machine learning, to select the best data structure. That is, Brainy exploits runtime feedback of data structures to model the situation an application runs on, and selects the best data structure for a given application/input/architecture combination based on the constructed model. The empirical evaluation shows that this technique is highly accurate across several real-world applications with various program input sets on two different state-of-the-art microarchitectures. Consequently, Brainy achieved an average performance improvement of 27\% and 33\% on both microarchitectures, respectively.},
pages = {86--97},
number = {6},
journaltitle = {{ACM} {SIGPLAN} Notices},
shortjournal = {{SIGPLAN} Not.},
author = {Jung, Changhee and Rus, Silvius and Railing, Brian P. and Clark, Nathan and Pande, Santosh},
urldate = {2023-09-21},
date = {2011-06-04},
langid = {english},
keywords = {ml, read},
file = {Jung et al. - 2011 - Brainy effective selection of data structures.pdf:/home/aria/Zotero/storage/DPJPURT8/Jung et al. - 2011 - Brainy effective selection of data structures.pdf:application/pdf},
}
@inproceedings{costa_empirical_2017,
location = {New York, {NY}, {USA}},
title = {Empirical Study of Usage and Performance of Java Collections},
isbn = {978-1-4503-4404-3},
url = {https://doi.org/10.1145/3030207.3030221},
doi = {10.1145/3030207.3030221},
series = {{ICPE} '17},
abstract = {Collection data structures have a major impact on the performance of applications, especially in languages such as Java, C\#, or C++. This requires a developer to select an appropriate collection from a large set of possibilities, including different abstractions (e.g. list, map, set, queue), and multiple implementations. In Java, the default implementation of collections is provided by the standard Java Collection Framework ({JCF}). However, there exist a large variety of less known third-party collection libraries which can provide substantial performance benefits with minimal code changes.In this paper, we first study the popularity and usage patterns of collection implementations by mining a code corpus comprised of 10,986 Java projects. We use the results to evaluate and compare the performance of the six most popular alternative collection libraries in a large variety of scenarios. We found that for almost every scenario and {JCF} collection type there is an alternative implementation that greatly decreases memory consumption while offering comparable or even better execution time. Memory savings range from 60\% to 88\% thanks to reduced overhead and some operations execute 1.5x to 50x faster.We present our results as a comprehensive guideline to help developers in identifying the scenarios in which an alternative implementation can provide a substantial performance improvement. Finally, we discuss how some coding patterns result in substantial performance differences of collections.},
pages = {389--400},
booktitle = {Proceedings of the 8th {ACM}/{SPEC} on International Conference on Performance Engineering},
publisher = {Association for Computing Machinery},
author = {Costa, Diego and Andrzejak, Artur and Seboek, Janos and Lo, David},
date = {2017},
note = {event-place: L'Aquila, Italy},
keywords = {collections, empirical study, execution time, java, memory, performance},
file = {Full Text:/home/aria/Zotero/storage/DLA43MW4/Costa et al. - 2017 - Empirical Study of Usage and Performance of Java C.pdf:application/pdf},
}
@online{wastl_advent_2015,
title = {Advent of Code},
url = {https://adventofcode.com/2022/about},
author = {Wastl, Eric},
urldate = {2024-03-08},
date = {2015},
}
|