Appropriate use of libraries

By Mateusz, 4 September, 2024

Appropriate use of libraries

  • E.g. if a maths library is available that gives accurate results for less energy, then use it. 

    According to research (Goekkus et al., 2013), using libraries will significantly improve the speed and reduce energy used compared to manually written code. This is because libraries are using highly optimised algorithms and reduce the amount of CPU instructions required to get the same result.

  • E.g. if a Carbon Aware library is appropriate, consider its use

    Typically, there are multiple libraries that can be used, but for the best results of energy savings, research should be done on which library would allow the user to achieve the best results in their environment.

 

References

Goekkus, F., Hilty, Prof. Dr. L. and University of Zurich (2013) Energy Efficient Programming. Available at: https://files.ifi.uzh.ch/hilty/t/examples/bachelor/Energy_Efficient_Programming_G%C3%B6kkus.pdf (Accessed on: 27th August 2024)