Just the given code doesnt meet my doubt , it was created quick and both
fall in two logic :D
Assume here that any* one of the condition will be true at a time*.
Hence i assume both flow will be same.

On Sat, Jan 9, 2010 at 2:39 PM, santhosh vs <[email protected]> wrote:

> Consider the two samples.
> *1.*
> void/object function()
> {
> if(cond1)
> {
>   ---
>   return;
> }
> if(cond2)
> {
>   ---
>   return;
> }
> if(cond3)
> {
>   ---
>   return;
> }
> return;
> }
>
> *2.*
> void/object function()
> {
> if(cond1)
> {
>   ---
> }
> else if(cond2)
> {
>   ---
> }
> else if(cond3)
> {
>   ---
> }
> return;
> }
>
>
> I have doubt in mind weather this two make a difference in call stack etc..
> Or the performance and work load is same for both flow?
>
> --
>
> Santhosh V
> http://techplex.wordpress.com
>
>


-- 

Santhosh V
http://techplex.wordpress.com

Reply via email to