Kent Simonsen

11 Tips for Greener Code

A single petabyte of data can consume as much electricity as ten households. Learn 11 practical tips to reduce your code's environmental and financial cost.

11 Tips for Greener Code
#1about 3 minutes

Making green code a measurable project goal

Treat sustainability as a non-functional requirement and use tools to measure energy consumption from the cloud level down to micro-benchmarks.

#2about 3 minutes

Eliminating waste in code, infrastructure, and CI/CD

Reduce energy consumption by removing unused code and data, optimizing test frameworks with timeouts, and avoiding inefficient parallelization in CI/CD pipelines.

#3about 1 minute

Optimizing data storage and hardware lifecycle

Minimize energy usage by deleting unnecessary stored data and strategically upgrading server hardware, which has a higher operational carbon cost than its manufacturing cost.

#4about 1 minute

Writing efficient code by optimizing loops and data transfer

Improve code's energy efficiency by minimizing operations inside loops and reducing network energy use through smaller data transfers and efficient formats like Protobuf.

#5about 2 minutes

Choosing efficient languages and avoiding costly reflection

Select programming languages and algorithms based on their energy consumption profiles and avoid performance-intensive operations like reflection by using techniques like code generation.

Related jobs
Jobs that call for the skills explored in this talk.

job ad

Saby Company
Delebio, Italy

Intermediate

test

Milly
Vienna, Austria

Intermediate

Featured Partners

Related Articles

View all articles
LM
Luis Minvielle
A Guide to Green Tech and Green IT Careers
Even though examples of green, sustainable technologies are as old as lazing and lounging in a Roman hot tub, green tech has experienced a big boom in the last few years as climate change, biodiversity loss, and pollution threaten our planet. By gree...
A Guide to Green Tech and Green IT Careers
AP
Anto Pranjić
11 Tips to Make The Most Out of Your First World Congress 
The world’s most awesome event for developers is taking place in less than a month! It’s been far too long since the last time we met in person, but that’s only going to make this year’s WeAreDevelopers World Congress a truly special experience. Conf...
11 Tips to Make The Most Out of Your First World Congress 
JC
Jordan Cutler
Top 7 Software Development Workflow Tips I Wish I Knew Earlier
Your time matters.1 hour of efficiency gain per day saves you 1 month per year.I’ll prove it to you:1 hour per day x 5 days per week x 52 weeks = 260 hours saved per year260 hours / 8 hours per day = 32.5 work days per year.That’s 1 month you could b...
Top 7 Software Development Workflow Tips I Wish I Knew Earlier
DC
Daniel Cranney
The real reason we document our code
The world of software development moves fast. Technology is constantly changing, as are the tools we use with it, and even the role of a programmer is itself constantly in flux. However, some aspects of software engineering are so foundational that w...
The real reason we document our code

From learning to earning

Jobs that call for the skills explored in this talk.

Code cleaner

Code cleaner

Cleanup Services
Rome, Italy

Remote
45-50K
Intermediate
PHP
JavaScript