z-logo
open-access-imgOpen Access
You can have it all: abstraction and good cache performance
Author(s) -
Juliana Franco,
Martin Hagelin,
Tobias Wrigstad,
Sophia Drossopoulou,
Susan Eisenbach
Publication year - 2017
Publication title -
uppsala university publications (uppsala university)
Language(s) - English
Resource type - Conference proceedings
ISBN - 978-1-4503-5530-8
DOI - 10.1145/3133850.3133861
Subject(s) - computer science , abstraction , cache , code (set theory) , programming language , parallel computing , computer architecture , philosophy , set (abstract data type) , epistemology
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

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom