Parameter By Value

This smell occurs when a parameter is passed by value to a function. Passed by value parameters consume more memory and wastes CPU-time by copying the value of the data structure at its original location to the new location.

Reference

A. Vetro, L. Ardito, G. Procaccianti, M. Morisio, “Definition, Implementation and Validation of Energy Code Smells: An Exploratory Study on an Embedded System”. ENERGY 2013, pp. 34-39.


Energy Smells

Home

All rights reserved (c) Tushar Sharma 2017-21.