Evaluation of the impact on energy consumption of lazy versus strict evaluation of Haskell data-structures

Gilberto Melfe, Alcides Fonseca, João Paulo Fernandes

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

environmental and economical reasons, it is necessary to optimize software programs to be more energy efficient. There has been a lazy versus strict evaluation debate in the community, with a special focus on functional programming, with regards to program speed. Until now there has not been any insight about the impact of the evaluation strategy in energy consumption. We have used micro-benchmarks on lazy and strict implementations of the Map data structure abstraction to understand how execution time and package and RAM energy consumptions are affected by using lazy or strict implementations. This study proposes recommendations for developers to use strict evaluation for most tasks as the default approach, specially when iterating over elements in Maps.

Original languageEnglish (US)
Title of host publicationProceedings - 22nd Brazilian Symposium on Programming Languages, SBLP 2018
PublisherAssociation for Computing Machinery
Pages83-89
Number of pages7
ISBN (Electronic)9781450364805
DOIs
StatePublished - Sep 20 2018
Event22nd Brazilian Symposium on Programming Languages, SBLP 2018 - Sao Carlos, Brazil
Duration: Sep 20 2018Sep 21 2018

Publication series

NameACM International Conference Proceeding Series

Conference

Conference22nd Brazilian Symposium on Programming Languages, SBLP 2018
Country/TerritoryBrazil
CitySao Carlos
Period9/20/189/21/18

Keywords

  • Data structures
  • Energy consumption
  • Functional programming
  • Haskell

ASJC Scopus subject areas

  • Software
  • Human-Computer Interaction
  • Computer Vision and Pattern Recognition
  • Computer Networks and Communications

Fingerprint

Dive into the research topics of 'Evaluation of the impact on energy consumption of lazy versus strict evaluation of Haskell data-structures'. Together they form a unique fingerprint.

Cite this