Loading…
ELC + ABS has ended
Back To Schedule
Wednesday, March 25 • 1:40pm - 3:30pm
Shrinking C Code - Rob Landley

Sign up or log in to save this to your schedule, view media, leave feedback and see who's attending!

Professionally developed code can often be shrunk to less than half its original size with a few simple techniques. For example, when the toybox "ifconfig" command was submitted (written by a professional team of experienced developers), the code was 1504 lines (44268 bytes) in 38 functions. After cleanup, the same code was 521 lines (15963 bytes) in 4 functions.

This is a walkthrough of each of the 26 commits applied to shrink that code to 1/3 of its original size, explaining why each change was made and the underlying principles of code simplification.

Speakers
RL

Rob Landley

Hobbyist & Geek, Hobbyist
I've been doing Linux for 20 years now. I maintain toybox and mkroot. I used to maintain busybox and the linux kernel Documentation directory and website. I wrote the initramfs documentation. I started the first GPL enforcement lawsuits, and created the 0BSD license to make up for... Read More →


Wednesday March 25, 2015 1:40pm - 3:30pm PDT
Ballroom Salon 5/6

Attendees (0)