chorg has asked for the wisdom of the Perl Monks concerning the following question:
Usually, when I write object methods, I make my methods pretty simple and small. I make each one model a single action, ie:
Add to cache
Check Cache for this value
Email me if Wiggy Wuggy tries to use this program
etc...
So I am wondering, to write more efficient, faster OO code, should I try and put more into each method, so that I need to call them less?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen
wisely..."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: Method calls expensive??
by Ovid (Cardinal) on May 05, 2001 at 01:44 UTC | |
by Pin (Novice) on May 05, 2001 at 02:08 UTC | |
by chorg (Monk) on May 05, 2001 at 02:06 UTC | |
|
Re: Method calls expensive??
by Masem (Monsignor) on May 05, 2001 at 01:44 UTC | |
|
Re: Method calls expensive??
by Rhandom (Curate) on May 05, 2001 at 02:23 UTC | |
|
Re: Method calls expensive??
by dws (Chancellor) on May 05, 2001 at 02:39 UTC |