Think Like a Customer, Use Your Stopwatch


Hands-on developers give their opinions of the various performance optimization strategies


Email    print   
October 15, 2004 —  (Page 1 of 7)
oftware performance tuning can get downright emotional. When their code isn’t working right, you might almost see programmers cry, or swear. Maybe both.

Often behind this empathy, however, is a cool and clear-eyed assessment about what it takes to tune and optimize software. Tools for profiling and debugging code can help, but many experienced developers still lean heavily on common sense and simple techniques.

One of these techniques is to stop tuning when the effort is no longer worth it. Another is to think holistically, even while delving into the minutiae of an optimization project.

As a software scientist at Adobe Systems Inc., Rich Gerber spends much time in minutiae—so much that he still regularly writes in assembly language. But his performance testing of Adobe Premier often doesn’t involve sophisticated tools or arcane knowledge.

“I just use the application the way a user would while using the simplest of all tools—a stopwatch,” said Gerber. Much of his time is spent trying out the MPEG encoder or filter, just as any video enthusiast might.

Gerber concedes that he does use some of Adobe’s own testing and instrumentation tools, as well as products such as Intel’s VTune Analyzer, to see which parts of the application are running slower than the rest.

Tuning can be as simple as turning on compiler flags and seeing what happens. “Sometimes, that gives you the performance you are looking for and you’re done,” he said.

When you still need more performance, changing the algorithm or optimizing for some of the newer processor instructions, such as single-instruction multiple data (SIMD), will boost things even more.

While working on tuning tasks, Gerber and his team of developers avoid tweaks that will be too difficult to maintain in the future. “Avoid creating unmaintainable code in the name of performance”, said Gerber. “If the original author gets hit by a bus, you want to be able to make changes.”




Pages 1 2 3 4 5 6 7 


Share this link: http://sdt.bz/28190
 
Most Read Latest News Blog Resources

Add comment


Name*
Email*  
Country     


  • Comment
Loading




close
NEXT ARTICLE
Telerik building feedback portal for TeamPulse
Users of agile management system will be able to request features, check on their progress Read More...
 
 
 
 
News on Monday
more>>
SharePoint Tech Report
more>>


   

 
 

Download Current Issue
FEBRUARY 2012 PDF ISSUE

Need Back Issues?
DOWNLOAD HERE

Want to subscribe?


 
blogs tab
Are you at risk for burnout?
Burnout is a severe problem and it can strike at any time. Here's how to tell if you are nearing the edge.
02/09/2012 02:16 PM EST

Agility, mom, and apple pie
If we're to evaluate the state-of-the-art in software development, we should start with the values espoused in the Agile Manifesto.
02/07/2012 11:57 AM EST

RIM woos developers with free tablet
How do you get more apps ported to the BlackBerry PlayBook? By giving every developer a free tablet, of course!
02/04/2012 01:57 PM EST

GitHire: Use Headhunters to Find Your Perfect Programmer
Are you a hiring manager tired of scouring the job boards? Check out this new service that will find 5 people interested in your jobs.
02/03/2012 12:17 PM EST

Facebook claims hacker cred
Facebook's SEC S-1 filing form includes a short essay on the Hacker Way by Mark Zuckerberg himself.
02/02/2012 08:26 AM EST

Ryan Dahl steps down
Ryan Dahl, creator of Node.js, steps back from his position as gatekeeper for the project.
02/01/2012 04:58 PM EST

 
Events calendar tab
2/13/2012 to 2/16/2012
Santa Clara
TechWeb

2/26/2012 to 2/29/2012
San Francisco
BZ Media

2/27/2012 to 3/2/2012
San Francisco
RSA

3/4/2012 to 3/7/2012
Las Vegas
IBM Tivoli

3/5/2012 to 3/9/2012
San Francisco
TechWeb