« The problem that Java Isolates solve | Main | It's the interface, stupid! »

Refactoring to efficiency

Jonathan Sobel: "Efficiency comes from elegant solutions, not optimized programs. Optimization is just a few correct-preserving transformations away."


July 3, 2004 05:54 PM

Comments

Stephen Cheng
(July 4, 2004 07:35 AM #)

This is so true, and a real pity people simply spend too much time on premature optimization.

I wonder where you get this quote from? URL please ;-) Thanks.

Bill de hra
(July 4, 2004 12:42 PM #)

Stephen,

The quote comes from here:

http://www.cs.indiana.edu/~jsobel/c455-c511.updated.txt

Jonathan Sobel
(July 7, 2004 03:52 PM #)

It's still true. In the years since I wrote that little blurb, I have used the same kinds of techniques for everything from programming languages research (such as http://www.cs.indiana.edu/~jsobel/Recycling/recycling.pdf) to high-reliability, high-performance systems (even at the device driver level) in commercial systems. It still works. If your solution is clear enough, it will be obvious how to optimize it; if your solution is a prematurely optimized mess, you won't be able to figure out how to do anything to make it significantly faster.

Trackback Pings

TrackBack URL for this entry:
http://www.dehora.net/mt/mt-tb.cgi/1341