dc.creatorBergel, Alexandre
dc.creatorInfante, Alejandro
dc.creatorMaass Olea, Sergio Andrés
dc.creatorSandoval Alcocer, Juan
dc.date.accessioned2018-11-26T19:52:01Z
dc.date.available2018-11-26T19:52:01Z
dc.date.created2018-11-26T19:52:01Z
dc.date.issued2018-09
dc.identifierScience of Computer Programming Volumen: 161 Páginas: 34-56 Número especial: SI
dc.identifier10.1016/j.scico.2017.12.009
dc.identifierhttps://repositorio.uchile.cl/handle/2250/152916
dc.description.abstractExpandable collections are collections whose size may vary as elements are added and removed. Hash maps and ordered collections are popular expandable collections. Expandable collection classes offer an easy-to-use API, however this apparent simplicity is accompanied by a significant amount of wasted resources. We describe some improvements of the collection library to reduce the amount of waste associated with collection expansions. We have designed two new collection libraries for the Pharo programming language that exhibit better resource management than the standard library. We improved the Pharo collection library using two complementary perspectives. First, across a basket of 5 applications, our optimized collection library significantly reduces the memory footprint of the collections: (i) the amount of intermediary internal array storage by 73%, (ii) the number of allocated bytes by 67% and (iii) the number of unused bytes by 72%. This reduction of memory is accompanied by a speedup of about 3% for most of our benchmarks. Second, we looked for an alternative to the classical expandable collection. The Lua programming language offers a unique abstract data type called table. We designed, implemented, and introduced this data type in the Pharo programming language and we ran a number of micro and macro-benchmarks. Overall, replacing the standard Pharo collection library by one inspired on Lua's table data type results in an execution speedup of up to 15% and a reduction of the memory consumption by up to 19%. We analyzed the collection implementations of Java, C#, Scala, and Ruby: these implementations largely behave like Pharo's, therefore with the same limitations. Our results are thus likely to benefit designers of future programming languages and collection libraries. (C) 2017 Elsevier B.V. All rights reserved.
dc.languageen
dc.publisherElsevier
dc.rightshttp://creativecommons.org/licenses/by-nc-nd/3.0/cl/
dc.rightsAttribution-NonCommercial-NoDerivs 3.0 Chile
dc.sourceScience of Computer Programming
dc.subjectCollection
dc.subjectPharo
dc.subjectLua
dc.subjectProfiling
dc.subjectExperiment
dc.titleReducing resource consumption of expandable collections: the pharo case
dc.typeArtículo de revista


Este ítem pertenece a la siguiente institución