---
title: "Tech Tip #38: Not everything is worth optimising"
description: "Some code isn't worth the energy it takes to optimise."
url: https://greencode.ai/tech-tips/38-not-everything-is-worth-optimising/
---

# Tech Tip #38: Not everything is worth optimising

**Some code isn't worth the energy it takes to optimise.**

[Watch the video](https://media.greencode.ai/shorts/not-everything-is-worth-optimising-7665b07e077d.mp4)

Video created by [explainapaper.com](https://explainapaper.com/?utm_source=greencode.ai&utm_medium=film&utm_campaign=made-by)

### The problem

Optimisation itself costs engineering time and, with AI tools, energy. A small, rarely run tool may never pay back the effort.

### The fix you can use today

- Estimate the saving: runs per year, instances, energy per run.
- Estimate the cost: engineering time and any AI inference.
- Only proceed where the return is clear; say no to the rest.

GreenCode checks first whether a change will save more energy than it costs, and skips it if not.

### Tools that help

- [Green Algorithms calculator](https://calculator.green-algorithms.org/?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): estimates the carbon footprint of a computation from its runtime, hardware and location
- [cloc](https://github.com/AlDanial/cloc?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): counts lines of code by language, a quick way to size a codebase

### How GreenCode helps

GreenCode helps tackle this by setting its own AI footprint against the saving it makes. It measures reductions in absolute terms and shows owners where capacity can be retired, so a saving can be banked rather than spent. [More on this](https://greencode.ai/climate-case/).

### Tags

#governance#cost#refactoring

### Sources

- [FAQ: can any application be optimised, or only large ones?](https://greencode.ai/faq/)
- [Green AI and energy-aware computing: deciding whether a run is worth it](https://greencode.ai/benefit/green-ai-and-energy-aware-computing/)

[All GreenCode Tech Tips](https://greencode.ai/tech-tips/)

#### Key Facts

- Tip **#38**
- For **CTOs and technical leads**
- Category **Strategy, reporting and procurement**
- Format **short video**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Want this checked on your own system? Talk to the GreenCode team.

[Get in touch](https://greencode.ai/contact/)
