You can have it all: Abstraction and good cache performance
File(s)Onwards_17.pdf (1.34 MB)
Accepted version
Author(s)
Franco, J
Hagelin, M
Wrigstad, T
Drossopoulou, S
Eisenbach, S
Type
Conference Paper
Abstract
On current architectures, the optimisation of an application's performance often involves data being stored according to access affinity - what is accessed together should be stored together, rather than logical affinity - what belongs together logically stays together. Such low level techniques lead to faster, but more error prone code, and end up tangling the program's logic with low-level data layout details. Our vision, which we call SHAPES - Safe, High-level, Abstractions for oPtimisation of mEmory cacheS - is that the layout of a data structure should be defined only once, upon instantiation, and the remainder of the code should be layout agnostic. This enables performance improvements while also guaranteeing memory safety, and supports the separation of program logic from low level concerns. In this paper we investigate how this vision can be supported by extending a programming language. We describe the core language features supporting this vision: classes can be customized to support different layouts, and layout information is carried around in types; the remaining source code is layout-unaware and the compiler emits layout-aware code. We then discuss our SHAPES implementation through a prototype library, which we also used for preliminary evaluations. Finally, we discuss how the core could be expanded so as to deliver SHAPES's full potential: the incorporation of compacting garbage collection, ad hoc polymorphism and late binding, synchronization of representations of different collections, support for dynamic change of representation, etc.
Date Issued
2017-10-25
Date Acceptance
2017-10-01
Citation
Onward! 2017 - Proceedings of the 2017 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, co-located with SPLASH 2017, 2017, pp.148-167
ISBN
9781450355308
Publisher
ACM
Start Page
148
End Page
167
Journal / Book Title
Onward! 2017 - Proceedings of the 2017 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, co-located with SPLASH 2017
Copyright Statement
© 2017 Copyright held by the owner/author(s). Publication rights licensed
to the Association for Computing Machinery.
to the Association for Computing Machinery.
Source
2017 ACM SIGPLAN International Symposium on New Ideas, New Paradigms, and Reflections on Programming and Software, co-located with SPLASH 2017
Publication Status
Published
Start Date
2017-10-25
Finish Date
2017-10-27
Coverage Spatial
Vancouver, BC, Canada