Things to Optimize Besides Speed and Memory
Programming in the 21st Century - James Hague - July 12, 2012Whittling down a function to accomplish the same result with fewer instructions is, unfortunately, fun. It’s a mind teaser in the same way that crossword puzzles and Sudoku are. Yet it’s a waste of time to finely hone a C++ routine that would be more than fast enough if implemented in interpreted Python. Fortunately, there are plenty of other targets for that optimization instinct, and it’s worth retraining your habits to give these aspects of your projects more attention:
Power consumption, battery life, heat, and fan noise.
Number of disk sector writes (especially for solid-state drives). Are you rewriting files that haven’t changed?
Overall documentation size and complexity.
How much time it takes to read a tutorial—and the engagement level of that tutorial.
Number of bytes of network traffic. The multiplayer game folks have been concerned with this from the start, but now almost every application has some level of network traffic that might go over non-free phone networks or through slow public Wi-Fi.
#include file size. This is more about the number of entities exposed than the byte count.
Number of taps/clicks it takes to accomplish a task.
App startup time.
How long it takes to do a full rebuild of your project. Or how long it takes to make usability tweaks and verify that they work.
The number of special cases that must be documented, either to the user or in your code.
Blog entry length.
(If you liked this, you might enjoy “Avoid Premature Optimization” Does Not Mean “Write Dumb Code”.)
Categories: Blogs Programming in the 21st Century
Erlang on Twitter
» phuteradhimas (phuteradhimas): @doni_erlang lo tuh gemini sesuka sama jenis haha
» pdincau (pdincau): RT @cemerick: A History of Erlang, by @joeerl [PDF] http://t.co/MPjXwbIjrW
» pdincau (pdincau): RT @MostlyErlang: @mostlyerlang Episode 4 is online, we talk with Joe Armstrong (@joeerl) about all manor of stuff http://t.co/9aTCzO6H8b …
» sandyprabowo0 (Sandy Prabowo): Kau lah dewa erlang haha dasar iwan RT @nabawi_imam: sandyprabowo0 kau adiksa :p
» erlang_kayla (erlang nugraha): Terus berusaha kawan… Fokus dgn tujuan awal :)
» pjvds (Pieter Joost): He convinced me! RT @ToJans: Blogged over the weekend: http://t.co/EWFZe4qoJh #Erlang #Axiom #ErlangCamp
» iBachue (Bachue Zhou): RT @aqee_net: 《Erlang语言的作者教你如何入手》:我是个守旧派 — 你不需要任何强大的开发工具。只需要一个文本编辑器和一个erlang shell。
打开你的文本编辑器:输入下面的程序。[0] http://t.co/T2DXWOJFEF
» aqee_net (外刊IT评论网): 《Erlang语言的作者教你如何入手》:我是个守旧派 — 你不需要任何强大的开发工具。只需要一个文本编辑器和一个erlang shell。
打开你的文本编辑器:输入下面的程序。[0] http://t.co/T2DXWOJFEF
» Sari1Rini (Rini Anita Sari): Hiiih ternyata doni jorok sekali -___- RT@doni_erlang: Ngantuk pkek bgt, tp blm mandi hha”
» Muh_Erlang (M. Erlangga Pangestu): @nabilahJKT48 nab boleh minta pin nya nggak ?
Statistics
Number of aggregated posts: 10650
Most recent article: May 20, 2013
Latest comments
» Moraru on This is Why You Spent All that Time Learning to Program: It is true that computer science was a pain in the back at time that i’ve had to learn it…
» Commercial hand dryers on Couchbase Meetup at new HQ: Buy online from here where you will get so much of variety in Commercial hand dryers for people. If you…
» Fort McMurray Homes on Motivated Reasoning and Erlang vs Python vs Node: I don’t really understand why this post is motivational? I don’t even see a post, just a title. Fort McMurray…