---
title: "GreenCode Tech Tips"
description: "Short, practical tips for developers, operations teams and CTOs on cutting the energy software uses, each with a problem, a fix you can apply today, and how GreenCode helps, drawn from the project's own research."
url: https://greencode.ai/tech-tips/
---

# GreenCode Tech Tips

**Short, practical tips for developers, operations teams and CTOs on cutting the energy software uses, each with a problem, a fix you can apply today, and how GreenCode helps, drawn from the project's own research.**

### Videos for greener software

Every GreenCode Tech Tip is a short video with the same shape: a real problem that wastes energy, a practical fix you can apply yourself, and a line on how GreenCode's pipeline helps with it. Each tip is drawn from the project's own research: its state of the art reviews, its published papers, and the catalogue of energy anti-patterns in the [GreenCode Constitution](https://greencode.ai/publications/greencode-constitution-agent-principles-for-optimizing-code-and-llm-inference-en/). Below each video you will find the tip written out, with the sources behind it.

Tech Tip #77 Developers · Web and front-end

### [Make your website grid-aware](https://greencode.ai/tech-tips/77-make-your-site-grid-aware/)

What if your website went lighter when the grid gets dirtier?

#carbon-aware#web-performance#ux

[The tip in full](https://greencode.ai/tech-tips/77-make-your-site-grid-aware/)

Tech Tip #76 Ops and infrastructure · Testing, CI and code quality

### [Tear down CI environments after use](https://greencode.ai/tech-tips/76-tear-down-ci-environments/)

Your preview environments are still running from last month.

#ci-cd#cloud#idle

[The tip in full](https://greencode.ai/tech-tips/76-tear-down-ci-environments/)

Tech Tip #75 CTOs and technical leads · Strategy, reporting and procurement

### [Back every green claim with a before-and-after](https://greencode.ai/tech-tips/75-claims-need-evidence/)

An unsubstantiated green claim is now a legal risk.

#esg#certification#reporting

[The tip in full](https://greencode.ai/tech-tips/75-claims-need-evidence/)

Tech Tip #74 Developers · Code efficiency

### [Close what you open](https://greencode.ai/tech-tips/74-close-what-you-open/)

Leaked connections keep burning resources after your code has finished.

#memory#databases#python#java

[The tip in full](https://greencode.ai/tech-tips/74-close-what-you-open/)

Tech Tip #73 Ops and infrastructure · Measuring energy

### [Measure idle power first](https://greencode.ai/tech-tips/73-measure-idle-first/)

Before you measure your code, measure the machine doing nothing.

#measurement#idle#reporting

[The tip in full](https://greencode.ai/tech-tips/73-measure-idle-first/)

Tech Tip #72 Developers · Code efficiency

### [Memoise expensive recursion](https://greencode.ai/tech-tips/72-memoise-expensive-recursion/)

Naive recursion can repeat the same calculation millions of times.

#algorithms#caching#python

[The tip in full](https://greencode.ai/tech-tips/72-memoise-expensive-recursion/)

Tech Tip #71 CTOs and technical leads · Strategy, reporting and procurement

### [A software saving is worth more at the meter](https://greencode.ai/tech-tips/71-pue-multiplies-software-savings/)

Save 100 kWh in software, save up to 158 at the meter.

#data-centre#cost#esg

[The tip in full](https://greencode.ai/tech-tips/71-pue-multiplies-software-savings/)

Tech Tip #70 Developers · Code efficiency

### [Use a set, not a list, for lookups](https://greencode.ai/tech-tips/70-use-a-set-for-lookups/)

Checking a list for a name? You're scanning it every time.

#algorithms#python#java

[The tip in full](https://greencode.ai/tech-tips/70-use-a-set-for-lookups/)

Tech Tip #69 Ops and infrastructure · HPC, embedded, mobile and games

### [Try a lower CPU frequency for batch work](https://greencode.ai/tech-tips/69-cap-cpu-frequency-for-batch/)

A 2 GHz cap cost 1-5% speed and saved 13-20% energy.

#hpc#hardware#scheduling

[The tip in full](https://greencode.ai/tech-tips/69-cap-cpu-frequency-for-batch/)

Tech Tip #68 CTOs and technical leads · AI and machine learning

### [Start pre-trained, fine-tune the adapter](https://greencode.ai/tech-tips/68-fine-tune-with-lora/)

LoRA trained 10,000 times fewer parameters with comparable quality.

#llm#model-efficiency#gpu

[The tip in full](https://greencode.ai/tech-tips/68-fine-tune-with-lora/)

Tech Tip #67 Developers · Code efficiency

### [Stop looping over DataFrame rows](https://greencode.ai/tech-tips/67-vectorise-dataframes/)

Looping over a DataFrame row by row wastes your processor.

#python#loops#performance

[The tip in full](https://greencode.ai/tech-tips/67-vectorise-dataframes/)

Tech Tip #66 Ops and infrastructure · Containers, Kubernetes and serverless

### [Go stateless so you can scale down](https://greencode.ai/tech-tips/66-go-stateless-to-scale-down/)

Your service can't scale down because it remembers too much.

#kubernetes#autoscaling#microservices

[The tip in full](https://greencode.ai/tech-tips/66-go-stateless-to-scale-down/)

Tech Tip #65 CTOs and technical leads · HPC, embedded, mobile and games

### [Make the efficient mode the default](https://greencode.ai/tech-tips/65-eco-mode-by-default/)

Most players never turned off the energy-saving default.

#games#ux#devices

[The tip in full](https://greencode.ai/tech-tips/65-eco-mode-by-default/)

Tech Tip #64 Developers · HPC, embedded, mobile and games

### [Stop rendering what nobody can see](https://greencode.ai/tech-tips/64-pause-menu-rendering/)

Halo Infinite rendered 4K behind its pause menu. Fixing it saved 15%.

#games#gpu#devices

[The tip in full](https://greencode.ai/tech-tips/64-pause-menu-rendering/)

Tech Tip #63 Ops and infrastructure · Testing, CI and code quality

### [Add an energy check to CI](https://greencode.ai/tech-tips/63-energy-test-in-ci/)

Your CI catches slow code. Does it catch hungry code?

#ci-cd#testing#measurement

[The tip in full](https://greencode.ai/tech-tips/63-energy-test-in-ci/)

Tech Tip #62 CTOs and technical leads · Strategy, reporting and procurement

### [Most developers have never measured energy](https://greencode.ai/tech-tips/62-most-developers-never-measured/)

Only 10% of developers have ever measured software energy.

#training#measurement#governance

[The tip in full](https://greencode.ai/tech-tips/62-most-developers-never-measured/)

Tech Tip #61 Developers · Measuring energy

### [Your laptop already has an energy meter](https://greencode.ai/tech-tips/61-check-your-laptop-energy-meter/)

Your operating system already knows which app is draining power.

#measurement#profiling#devices

[The tip in full](https://greencode.ai/tech-tips/61-check-your-laptop-energy-meter/)

Tech Tip #60 CTOs and technical leads · Web and front-end

### [Does dark mode save battery?](https://greencode.ai/tech-tips/60-dark-mode-myth/)

Dark mode saves less battery than you think, at normal brightness.

#mobile#ux#devices

[The tip in full](https://greencode.ai/tech-tips/60-dark-mode-myth/)

Tech Tip #59 Ops and infrastructure · AI and machine learning

### [Batch your inference](https://greencode.ai/tech-tips/59-batch-inference-requests/)

An idle GPU waiting for one request at a time wastes power.

#llm#inference#gpu#performance

[The tip in full](https://greencode.ai/tech-tips/59-batch-inference-requests/)

Tech Tip #58 CTOs and technical leads · Strategy, reporting and procurement

### [Keep hardware in service longer](https://greencode.ai/tech-tips/58-keep-hardware-longer/)

Most hardware is retired because software outgrew it.

#hardware-lifetime#procurement#devices

[The tip in full](https://greencode.ai/tech-tips/58-keep-hardware-longer/)

Tech Tip #57 Developers · HPC, embedded, mobile and games

### [Predict, don't just react](https://greencode.ai/tech-tips/57-predictive-control-not-thresholds/)

A smarter controller cut greenhouse energy by over 60%.

#embedded#devices#algorithms

[The tip in full](https://greencode.ai/tech-tips/57-predictive-control-not-thresholds/)

Tech Tip #56 Ops and infrastructure · HPC, embedded, mobile and games

### [Look up what your job actually used](https://greencode.ai/tech-tips/56-look-up-your-job-energy/)

Your cluster already records the energy of every job.

#hpc#measurement#research-software

[The tip in full](https://greencode.ai/tech-tips/56-look-up-your-job-energy/)

Tech Tip #55 CTOs and technical leads · Testing, CI and code quality

### [Put energy in your definition of done](https://greencode.ai/tech-tips/55-energy-in-definition-of-done/)

Energy is in almost nobody's definition of done.

#governance#ci-cd#testing

[The tip in full](https://greencode.ai/tech-tips/55-energy-in-definition-of-done/)

Tech Tip #54 Developers · Code efficiency

### [Profile before you optimise](https://greencode.ai/tech-tips/54-profile-before-you-optimise/)

Fixing code that never runs saves nothing.

#profiling#measurement#refactoring

[The tip in full](https://greencode.ai/tech-tips/54-profile-before-you-optimise/)

Tech Tip #53 Ops and infrastructure · Cloud and infrastructure

### [Test your workload on other CPU architectures](https://greencode.ai/tech-tips/53-try-arm-instances/)

Your app might run cheaper and leaner on ARM.

#cloud#hardware#cost

[The tip in full](https://greencode.ai/tech-tips/53-try-arm-instances/)

Tech Tip #52 Developers · Web and front-end

### [Load video only when someone presses play](https://greencode.ai/tech-tips/52-load-video-on-play/)

Autoloaded video can outweigh the rest of the page.

#video#web-performance#frontend

[The tip in full](https://greencode.ai/tech-tips/52-load-video-on-play/)

Tech Tip #51 CTOs and technical leads · AI and machine learning

### [Ask AI for less](https://greencode.ai/tech-tips/51-shorter-prompts-shorter-answers/)

Every extra word in or out of a chatbot costs energy.

#llm#training

[The tip in full](https://greencode.ai/tech-tips/51-shorter-prompts-shorter-answers/)

Tech Tip #50 Developers · Web and front-end

### [Put your page's footprint in the footer](https://greencode.ai/tech-tips/50-show-your-page-footprint/)

What if every page told you its own carbon cost?

#web-performance#measurement#javascript

[The tip in full](https://greencode.ai/tech-tips/50-show-your-page-footprint/)

Tech Tip #49 Ops and infrastructure · Containers, Kubernetes and serverless

### [Attribute energy to pods, not just nodes](https://greencode.ai/tech-tips/49-attribute-energy-to-pods/)

Which of your hundred pods is burning the power?

#kubernetes#measurement

[The tip in full](https://greencode.ai/tech-tips/49-attribute-energy-to-pods/)

Tech Tip #48 CTOs and technical leads · Strategy, reporting and procurement

### [Don't buy availability you don't need](https://greencode.ai/tech-tips/48-dont-buy-availability-you-dont-need/)

Half your infrastructure may exist just in case.

#resilience#cost#governance

[The tip in full](https://greencode.ai/tech-tips/48-dont-buy-availability-you-dont-need/)

Tech Tip #47 Developers · Web and front-end

### [Cache at every layer](https://greencode.ai/tech-tips/47-cache-at-every-layer/)

Why send the same bytes a million times?

#caching#cdn#web-performance

[The tip in full](https://greencode.ai/tech-tips/47-cache-at-every-layer/)

Tech Tip #46 Ops and infrastructure · Containers, Kubernetes and serverless

### [Do containers waste energy?](https://greencode.ai/tech-tips/46-containers-myth/)

Containers add a small energy tax. Consolidation pays it back.

#docker#kubernetes#right-sizing

[The tip in full](https://greencode.ai/tech-tips/46-containers-myth/)

Tech Tip #45 CTOs and technical leads · Strategy, reporting and procurement

### [A green cloud doesn't fix wasteful software](https://greencode.ai/tech-tips/45-green-cloud-is-not-enough/)

Moving to a green cloud doesn't make your code efficient.

#renewables#cloud#governance

[The tip in full](https://greencode.ai/tech-tips/45-green-cloud-is-not-enough/)

Tech Tip #44 Developers · Code efficiency

### [Delete dead code and unused dependencies](https://greencode.ai/tech-tips/44-delete-dead-code/)

The greenest code is the code you delete.

#code-quality#refactoring#cost

[The tip in full](https://greencode.ai/tech-tips/44-delete-dead-code/)

Tech Tip #43 Ops and infrastructure · Cloud and infrastructure

### [Consolidate underused servers](https://greencode.ai/tech-tips/43-consolidate-underused-servers/)

Moving VMs off half-empty hosts can cut energy by up to 22%.

#right-sizing#idle#data-centre

[The tip in full](https://greencode.ai/tech-tips/43-consolidate-underused-servers/)

Tech Tip #42 Developers · Web and front-end

### [Serve images at the size they're shown](https://greencode.ai/tech-tips/42-size-images-for-the-screen/)

That 4000-pixel photo is displayed 400 pixels wide.

#images#web-performance#frontend

[The tip in full](https://greencode.ai/tech-tips/42-size-images-for-the-screen/)

Tech Tip #41 CTOs and technical leads · Strategy, reporting and procurement

### [Optimise what runs everywhere](https://greencode.ai/tech-tips/41-install-base-is-the-multiplier/)

Install base, not percentage, is the number that matters.

#governance#cost

[The tip in full](https://greencode.ai/tech-tips/41-install-base-is-the-multiplier/)

Tech Tip #40 Developers · AI and machine learning

### [Give your AI assistant structure, not raw files](https://greencode.ai/tech-tips/40-structured-context-for-ai/)

Pasting whole files into an AI wastes tokens and accuracy.

#llm#ai-assistants#legacy

[The tip in full](https://greencode.ai/tech-tips/40-structured-context-for-ai/)

Tech Tip #39 Ops and infrastructure · Cloud and infrastructure

### [Put your infrastructure in code](https://greencode.ai/tech-tips/39-put-your-infrastructure-in-code/)

You can't cut waste you can't see.

#iac#cloud

[The tip in full](https://greencode.ai/tech-tips/39-put-your-infrastructure-in-code/)

Tech Tip #38 CTOs and technical leads · Strategy, reporting and procurement

### [Not everything is worth optimising](https://greencode.ai/tech-tips/38-not-everything-is-worth-optimising/)

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

#governance#cost#refactoring

[The tip in full](https://greencode.ai/tech-tips/38-not-everything-is-worth-optimising/)

Tech Tip #37 Developers · Code efficiency

### [Don't block on a hot path](https://greencode.ai/tech-tips/37-dont-block-the-hot-path/)

Your server is burning power just waiting.

#performance#networking

[The tip in full](https://greencode.ai/tech-tips/37-dont-block-the-hot-path/)

Tech Tip #36 Ops and infrastructure · Containers, Kubernetes and serverless

### [Let quiet services scale to zero](https://greencode.ai/tech-tips/36-scale-to-zero/)

Why run a service all night for zero requests?

#kubernetes#autoscaling#serverless#idle

[The tip in full](https://greencode.ai/tech-tips/36-scale-to-zero/)

Tech Tip #35 CTOs and technical leads · Strategy, reporting and procurement

### [Start with your legacy systems](https://greencode.ai/tech-tips/35-legacy-is-the-low-hanging-fruit/)

60 to 80% of software in service is legacy.

#legacy#cost#refactoring

[The tip in full](https://greencode.ai/tech-tips/35-legacy-is-the-low-hanging-fruit/)

Tech Tip #34 Developers · Testing, CI and code quality

### [Write the tests before you refactor](https://greencode.ai/tech-tips/34-tests-before-you-refactor/)

Never optimise code you can't test.

#testing#refactoring#legacy

[The tip in full](https://greencode.ai/tech-tips/34-tests-before-you-refactor/)

Tech Tip #33 Ops and infrastructure · Containers, Kubernetes and serverless

### [Right-size your Kubernetes requests](https://greencode.ai/tech-tips/33-right-size-kubernetes-requests/)

Your pods reserve four times the CPU they use.

#kubernetes#right-sizing#docker

[The tip in full](https://greencode.ai/tech-tips/33-right-size-kubernetes-requests/)

Tech Tip #32 CTOs and technical leads · AI and machine learning

### [Quantise before you buy more GPUs](https://greencode.ai/tech-tips/32-quantise-before-you-scale/)

8-bit weights ran 175-billion-parameter models without losing quality.

#llm#model-efficiency#gpu#inference

[The tip in full](https://greencode.ai/tech-tips/32-quantise-before-you-scale/)

Tech Tip #31 Developers · Web and front-end

### [Ship less JavaScript](https://greencode.ai/tech-tips/31-ship-less-javascript/)

Every page loads your whole app's JavaScript. Why?

#javascript#web-performance#frontend

[The tip in full](https://greencode.ai/tech-tips/31-ship-less-javascript/)

Tech Tip #30 Ops and infrastructure · HPC, embedded, mobile and games

### [Test small before you run big](https://greencode.ai/tech-tips/30-fail-fast-on-the-cluster/)

Half a cluster's energy went on jobs that failed.

#hpc#research-software#testing

[The tip in full](https://greencode.ai/tech-tips/30-fail-fast-on-the-cluster/)

Tech Tip #29 CTOs and technical leads · Strategy, reporting and procurement

### [Ask for an energy rating when you buy software](https://greencode.ai/tech-tips/29-ask-for-an-energy-rating/)

Your fridge has an energy label. Why not your software?

#procurement#certification#standards

[The tip in full](https://greencode.ai/tech-tips/29-ask-for-an-energy-rating/)

Tech Tip #28 Developers · Code efficiency

### [Do it once, outside the loop](https://greencode.ai/tech-tips/28-do-it-once-outside-the-loop/)

Your loop compiles the same regex a million times.

#loops#refactoring#python#java

[The tip in full](https://greencode.ai/tech-tips/28-do-it-once-outside-the-loop/)

Tech Tip #27 Ops and infrastructure · Cloud and infrastructure

### [Carbon-aware isn't the same as energy-saving](https://greencode.ai/tech-tips/27-carbon-aware-is-not-energy-saving/)

Shifting a job to a greener hour saves no energy.

#carbon-aware#scheduling#measurement

[The tip in full](https://greencode.ai/tech-tips/27-carbon-aware-is-not-energy-saving/)

Tech Tip #26 CTOs and technical leads · Strategy, reporting and procurement

### [Make the saving stick](https://greencode.ai/tech-tips/26-make-the-saving-stick/)

Cheaper computing can mean more computing.

#governance#esg#cost

[The tip in full](https://greencode.ai/tech-tips/26-make-the-saving-stick/)

Tech Tip #25 Developers · Web and front-end

### [Load images only when they're needed](https://greencode.ai/tech-tips/25-lazy-load-offscreen-images/)

Most of your images load before anyone scrolls to them.

#web-performance#images#frontend

[The tip in full](https://greencode.ai/tech-tips/25-lazy-load-offscreen-images/)

Tech Tip #24 Ops and infrastructure · Cloud and infrastructure

### [Run flexible jobs when the grid is cleaner](https://greencode.ai/tech-tips/24-run-flexible-jobs-when-the-grid-is-cleaner/)

The same job can cost less carbon at a different hour.

#carbon-aware#scheduling#ci-cd

[The tip in full](https://greencode.ai/tech-tips/24-run-flexible-jobs-when-the-grid-is-cleaner/)

Tech Tip #23 CTOs and technical leads · Strategy, reporting and procurement

### [Put software energy in the numbers you already report](https://greencode.ai/tech-tips/23-software-energy-in-your-esg-numbers/)

Your IT emissions are probably an estimate.

#esg#standards#reporting

[The tip in full](https://greencode.ai/tech-tips/23-software-energy-in-your-esg-numbers/)

Tech Tip #22 Developers · Code efficiency

### [Buffer your reads and writes](https://greencode.ai/tech-tips/22-buffer-your-io/)

Writing one line at a time means one system call per line.

#performance#java#python

[The tip in full](https://greencode.ai/tech-tips/22-buffer-your-io/)

Tech Tip #21 Ops and infrastructure · Cloud and infrastructure

### [Find and remove zombie resources](https://greencode.ai/tech-tips/21-remove-zombie-resources/)

That instance at 3% CPU has been running for a year.

#idle#cloud#cost

[The tip in full](https://greencode.ai/tech-tips/21-remove-zombie-resources/)

Tech Tip #20 Developers · Databases, APIs and storage

### [Write in bulk, not row by row](https://greencode.ai/tech-tips/20-bulk-writes-not-row-by-row/)

Inserting 10,000 rows? Don't send 10,000 statements.

#sql#orm#databases#performance

[The tip in full](https://greencode.ai/tech-tips/20-bulk-writes-not-row-by-row/)

Tech Tip #19 CTOs and technical leads · AI and machine learning

### [Make AI pay for itself in energy](https://greencode.ai/tech-tips/19-ai-must-pay-for-itself/)

Can your AI save more energy than it uses?

#llm#esg#governance

[The tip in full](https://greencode.ai/tech-tips/19-ai-must-pay-for-itself/)

Tech Tip #18 Developers · Code efficiency

### [Don't build strings with += in a loop](https://greencode.ai/tech-tips/18-dont-build-strings-in-a-loop/)

This one-line habit makes your code quadratically slow.

#algorithms#loops#python#java

[The tip in full](https://greencode.ai/tech-tips/18-dont-build-strings-in-a-loop/)

Tech Tip #17 Ops and infrastructure · Web and front-end

### [Serve static sites from the edge](https://greencode.ai/tech-tips/17-cache-and-compress-at-the-edge/)

A page view shouldn't need a database.

#cdn#caching

[The tip in full](https://greencode.ai/tech-tips/17-cache-and-compress-at-the-edge/)

Tech Tip #16 CTOs and technical leads · AI and machine learning

### [Use the smallest AI model that does the job](https://greencode.ai/tech-tips/16-smallest-model-that-does-the-job/)

You're using a giant AI model for a tiny job.

#llm#model-efficiency#inference

[The tip in full](https://greencode.ai/tech-tips/16-smallest-model-that-does-the-job/)

Tech Tip #15 Developers · Code efficiency

### [Even tuned code has energy left in it](https://greencode.ai/tech-tips/15-even-tuned-code-has-energy-left/)

An AI agent found savings in code experts already optimised.

#profiling#compiled-languages#video

[The tip in full](https://greencode.ai/tech-tips/15-even-tuned-code-has-energy-left/)

Tech Tip #14 Ops and infrastructure · Cloud and infrastructure

### [Shift flexible load to your own solar](https://greencode.ai/tech-tips/14-shift-load-to-your-own-solar/)

Moving flexible data-centre load cut energy costs by 16.64%.

#carbon-aware#scheduling#data-centre#renewables

[The tip in full](https://greencode.ai/tech-tips/14-shift-load-to-your-own-solar/)

Tech Tip #13 CTOs and technical leads · Testing, CI and code quality

### [Clean code is greener code](https://greencode.ai/tech-tips/13-clean-code-is-greener-code/)

Ordinary refactoring saves 10 to 30% energy, studies report.

#code-quality#refactoring#cost

[The tip in full](https://greencode.ai/tech-tips/13-clean-code-is-greener-code/)

Tech Tip #12 Developers · Measuring energy

### [Faster is not always greener](https://greencode.ai/tech-tips/12-faster-is-not-always-greener/)

Your speed-up might not save the energy you think.

#measurement#profiling#llm#gpu

[The tip in full](https://greencode.ai/tech-tips/12-faster-is-not-always-greener/)

Tech Tip #11 Ops and infrastructure · HPC, embedded, mobile and games

### [Tune your video pipeline](https://greencode.ai/tech-tips/11-transcode-video-efficiently/)

An AI agent cut FFmpeg 4K transcoding energy by 28.4%.

#video#compiled-languages#profiling

[The tip in full](https://greencode.ai/tech-tips/11-transcode-video-efficiently/)

Tech Tip #10 Developers · AI and machine learning

### [Asking AI for efficient code works, until it doesn't](https://greencode.ai/tech-tips/10-ai-code-ask-for-efficiency-then-check/)

Asking AI for efficient code made it up to ninety-two percent more efficient.

#llm#ai-assistants#testing

[The tip in full](https://greencode.ai/tech-tips/10-ai-code-ask-for-efficiency-then-check/)

Tech Tip #9 CTOs and technical leads · Code efficiency

### [An AI agent saved a quarter of the energy](https://greencode.ai/tech-tips/9-one-quarter-less-energy/)

An AI agent saved a quarter of the energy, on average.

#llm#refactoring#measurement

[The tip in full](https://greencode.ai/tech-tips/9-one-quarter-less-energy/)

Tech Tip #8 Ops and infrastructure · Containers, Kubernetes and serverless

### [Slim your container images](https://greencode.ai/tech-tips/8-slim-your-container-images/)

Is your container a gigabyte, for a hundred-line service?

#docker#ci-cd#cloud

[The tip in full](https://greencode.ai/tech-tips/8-slim-your-container-images/)

Tech Tip #7 Developers · Web and front-end

### [Weigh your web page](https://greencode.ai/tech-tips/7-weigh-your-web-page/)

We cut our home page from six point eight megabytes to one point seven.

#web-performance#images#javascript#frontend

[The tip in full](https://greencode.ai/tech-tips/7-weigh-your-web-page/)

Tech Tip #6 CTOs and technical leads · AI and machine learning

### [Count your AI coding assistant's footprint](https://greencode.ai/tech-tips/6-count-ai-coding-footprint/)

Coding with AI had nearly thirty-three times the carbon of coding by hand.

#llm#ai-assistants#governance#esg

[The tip in full](https://greencode.ai/tech-tips/6-count-ai-coding-footprint/)

Tech Tip #5 Ops and infrastructure · Containers, Kubernetes and serverless

### [Forecast load before you scale](https://greencode.ai/tech-tips/5-forecast-before-you-scale/)

A simple maths model beat neural networks at predicting server load.

#kubernetes#autoscaling#cloud

[The tip in full](https://greencode.ai/tech-tips/5-forecast-before-you-scale/)

Tech Tip #4 Developers · AI and machine learning

### [Give your AI coding agent energy rules](https://greencode.ai/tech-tips/4-give-your-agent-a-constitution/)

Your AI agent optimises for passing tests, not for energy.

#llm#ai-assistants#refactoring

[The tip in full](https://greencode.ai/tech-tips/4-give-your-agent-a-constitution/)

Tech Tip #3 CTOs and technical leads · Measuring energy

### [Measure before and after, on the same setup](https://greencode.ai/tech-tips/3-measure-before-and-after/)

If you didn't measure it twice, you didn't save it.

#measurement#governance

[The tip in full](https://greencode.ai/tech-tips/3-measure-before-and-after/)

Tech Tip #2 Ops and infrastructure · Cloud and infrastructure

### [Your cloud servers are mostly idle](https://greencode.ai/tech-tips/2-your-cloud-servers-are-mostly-idle/)

Most cloud servers sit idle about seventy percent of the time.

#idle#right-sizing#cloud#cost

[The tip in full](https://greencode.ai/tech-tips/2-your-cloud-servers-are-mostly-idle/)

Tech Tip #1 Developers · Databases, APIs and storage

### [Stop the N+1 query](https://greencode.ai/tech-tips/1-stop-the-n-plus-one-query/)

Your page makes a hundred trips to the database when one would do.

#sql#orm#databases#loops

[The tip in full](https://greencode.ai/tech-tips/1-stop-the-n-plus-one-query/)

New tips arrive weekly. Follow GreenCode on [YouTube](https://www.youtube.com/@itea-greencode?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode) and [TikTok](https://www.tiktok.com/@itea_greencode?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode) to see them as they are released.

#### Key Facts

- Format **short videos, one tip each**
- For **developers, operations teams and CTOs**
- Every tip **a problem, a fix, how GreenCode helps**
- Watch on **YouTube and TikTok**
- Evidence **GreenCode's research and deliverables**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Have a tip you want us to cover, or a system you want measured? Talk to the GreenCode team.

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