On the adaptive instantiation of type-specific collections

Autor: Bruno Sofiato, Ricardo Luis de Azevedo da Rocha
Rok vydání: 2017
Předmět:
Zdroj: ANT/SEIT
ISSN: 1877-0509
DOI: 10.1016/j.procs.2017.05.392
Popis: After an age of almost unlimited computing resources, the advent of resource-constrained computing devices such as cell phones, brought questions of performance back into the spotlight. Programming languages usually provide a set of general-purpose col- lections. Albeit highly optimized, they fall short of type-specific implementations in both processing time and memory usage. We describe a method for automatically deciding which implementation to use in runtime. Two complementary strategies for deter- mining whether a type-specific collection should be employed are described. To measure their gains, we conducted an experiment composed of eleven benchmarks, ranging from databased to compilers. Results show improvements of 13% in processing and of 3.5% in memory usage. As an unexpected side-effect, our technique reduced instantiations of collection in runtime.
Databáze: OpenAIRE