Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Giving a program priority briefly
- Date: Mon, 11 Jun 2007 17:08:45 +0900
- From: "Nguyen Vu Hung" <vuhung16plus@example.com>
- Subject: Re: [tlug] Giving a program priority briefly
- References: <466B5A87.7000002@dcook.org> <78d7dd350706100221u524aa0baxa6498541674863b0@mail.gmail.com> <466BD066.90302@dcook.org> <78d7dd350706101016x184c0a29tbda67c68d66191ed@mail.gmail.com> <466C7778.1050803@dcook.org> <78d7dd350706101834k2d764dcbsd3af2c924f29743b@mail.gmail.com> <466CCBED.30902@dcook.org>
On 6/11/07, Darren Cook <darren@example.com> wrote:Changing code to make it faster (or use less of any resource), without changing functionality, is called optimization. In contrast refactoring is something you do for the programmer's sake, not the program's sake.
I did misunderstand because so far in this thread, we are talking about stuffs like: gcc -O, nice -9 etc. I thought you were optimizing your program while refactoring it .
[quote] "The goal of refactoring is to improve the quality of the software system, such as its understandability, extensibility and maintainability, without affecting its overall functionality and behavior." [quote] [1]
Usually you expect to lose a bit of performance when refactoring, e.g. when you add another level of redirection. I was running the benchmark after each change because in this case losing performance would be bad (e.g. instantly kill interest in my patches). But I wasn't optimizing.
I got it. I need a lot of resouce to do the regression test.
I think the biggest thing I got from Martin Fowler's Refactoring book was that refactoring, adding features, and optimization should be distinct steps (*). I tend to blur all three together if I don't think about it.
Pls refer to the "definition" of software refactoring above. After refactoring the program, you deepen your undertanding on it. You understand the design of the program and its issues. Adding features and optimization should be done after refractoring, in that order.
[1] Refactoring Practice: How it is and How it Should be Supported â An Eclipse Case Study, Zhenchang Xing and Eleni Stroulia Computing Science Department University of Alberta Edmonton AB, T6G 2H1, Canada {xing,stroulia}@example.com
-- Best Regards, Nguyen Hung Vu vuhung16plus{remove}@example.com An inquisitive look at Harajuku http://www.flickr.com/photos/vuhung/sets/72157600109218238/
- Follow-Ups:
- Re: [tlug] Giving a program priority briefly
- From: Stephen J. Turnbull
- References:
- [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
Home | Main Index | Thread Index
- Prev by Date: [tlug] C++ training in Japan in English
- Next by Date: Re: [tlug] Giving a program priority briefly
- Previous by thread: Re: [tlug] Giving a program priority briefly
- Next by thread: Re: [tlug] Giving a program priority briefly
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links