The Artima Developer Community
Sponsored Link

News & Ideas Forum (Closed for new topic posts)
Tuning Performance and Process

3 replies on 1 page. Most recent reply: Dec 10, 2002 11:51 AM by Ryan Shriver

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Bill Venners

Posts: 2242
Nickname: bv
Registered: Jan, 2002

Tuning Performance and Process Posted: Dec 9, 2002 2:43 AM
Reply to this message Reply
Advertisement
Artima.com has published Part VI of an interview with Martin Fowler in which he discusses balancing maintainability and efficiency, creating tunable software, the role of patterns, and the Agile Software Manifesto.

http://www.artima.com/intv/tunable.html

Here's an excerpt:

So you could make a performance optimization in one VM, and then bring in Hotspot, and it will actually slow Hotspot down. You've got to be very wary of that. Object pooling is a good example. A lot of people are very enamored with object pooling, yet half the time people are not measuring to that to find out whether object pooling is any good. Object pooling was very important in the early days of Java, because garbage collection wasn't terribly good. When you've got generational garbage collection, object pooling becomes a lot less effective, because short-lived objects can be collected very cheaply. It's the long-lived objects, such as ones you might pool, that are expensive to garbage collect.

So the rules keep changing. That's why you've got to be very careful to profile. If you think you can predict from the source code what the machine is doing, you've got no chance. When you're in a world of optimizing compilers and VMs, you have to profile, because the compilers and VMs are doing things that you can't even imagine. So don't predict, just measure.


What do you think of Martin's comments?


Cheech

Posts: 1
Nickname: cheech
Registered: Dec, 2002

Re: Tuning Performance and Process Posted: Dec 9, 2002 4:52 PM
Reply to this message Reply
Bill,

Thanks for getting these interviews with Martin Fowler.

He is pretty much as close to an "idol" as I can have in my profession, in terms of how good I'd like to be at what I do.

He always seems to put into words the things I cannot. I try to go hear him speak whenever I can, and read anything he writes.

I follow Martin Fowler for topics of design and process, and Rickard ?berg for topics of technology and out of the box thinking.

Anyway, the interviews are good, keep 'em coming.

Bill Venners

Posts: 2242
Nickname: bv
Registered: Jan, 2002

Re: Tuning Performance and Process Posted: Dec 9, 2002 6:14 PM
Reply to this message Reply
> Anyway, the interviews are good, keep 'em coming.

Thanks. I'm planning to have at least one new interview installment each week from now on.

In fact, I am considering running two interview series at once next year, because each series takes about six weeks to complete. I want the interviews to be in-depth, which means either they are extremely long or I spread them out over many weeks. People don't actually tend to read long articles on the web, so that's why I chose to spread them out. But if I only run one interview at a time, I can only get about 8 of them out a year. If I run two of them at once, I can get about 16 out a year. I'd appreciate any opinions of whether two interview installments a week would be too much or just right.

In addition to interviews, I am planning on publishing a lot of articles and book content. I have two authors lined up for new columns, and I'm hoping to spend more time writing myself next year. And don't forget to submit your own great ideas for articles:

http://www.artima.com/write.html

Ryan Shriver

Posts: 9
Nickname: rshriver
Registered: Oct, 2002

Re: Tuning Performance and Process Posted: Dec 10, 2002 11:51 AM
Reply to this message Reply
Once again, thanks Bill for the interview.

One thing that I'd like to add is the importance of getting performance requirements defined up-front, in some objective manner (ie System must support 100 transactions per second). Subject requirements (ie it's gotta be fast) won't due.

During performance tuning, tune until you reach this goal and then stop. Even if there are other areas that could be tuned, resist the urge to do it.

I, like many other engineers, certainly enjoy the process of tuning an application or system. It's a fun excercise, but we must realize that this excercise costs money and the return on it's investment could drop significantly if we tune for the hell of it.

-ryan

Flat View: This topic has 3 replies on 1 page
Topic: Patterns, Hype, and Snobbery Previous Topic   Next Topic Topic: The Poetry of Programming


Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2014 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us