superstition or real?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

superstition or real?

Keith M. Rettig
I have the following code structure in a lot of places;

[if( $VAR1 == “something" )][else]
[inline(
        -database=‘myDatabase',
        -table=‘myLayout',
        ‘fieldone'=$VAR1,
        -add
)][/inline]
[/if]

It seems to me that if I get rid of the [IF][ELSE][/IF] and replace it with some logic that is simply [IF][/IF] my pages get rendered more quickly.
It seems that the [ELSE] has a cost that is not zero.  I don’t really expect it to be zero, but certainly not noticeable.

Can someone set me straight that this is just superstitious behavior (or confirmation bias) or if it is a reality?

Thanks,
Keith.

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: superstition or real?

Dave Bruhn
Which played it better?
Stevie Wonder: https://www.youtube.com/watch?v=0CFuCYNx-1g
Stevie Ray Vaughan: https://www.youtube.com/watch?v=JL9eO4-aDMs

I’m partial to SRV’s version…

But yes, that’s superstition for you.  Just do [if($VAR1 != “something”][inline…][/if]

Dave
--
Dave Bruhn
Senior Systems Analyst
North Carolina Hospital Association
PO Box 4449
Cary, NC 27519-4449
919-677-4145 (office)
[hidden email]
http://www.ncha.org

On 3/11/17, 3:00 PM, "[hidden email] on behalf of Keith M. Rettig" <[hidden email] on behalf of [hidden email]> wrote:

    I have the following code structure in a lot of places;
   
    [if( $VAR1 == “something" )][else]
    [inline(
    -database=‘myDatabase',
    -table=‘myLayout',
    ‘fieldone'=$VAR1,
    -add
    )][/inline]
    [/if]
   
    It seems to me that if I get rid of the [IF][ELSE][/IF] and replace it with some logic that is simply [IF][/IF] my pages get rendered more quickly.
    It seems that the [ELSE] has a cost that is not zero.  I don’t really expect it to be zero, but certainly not noticeable.
   
    Can someone set me straight that this is just superstitious behavior (or confirmation bias) or if it is a reality?
   
    Thanks,
    Keith.
   
    #############################################################
   
    This message is sent to you because you are subscribed to
      the mailing list Lasso [hidden email]
    Official list archives available at http://www.lassotalk.com
    To unsubscribe, E-mail to: <[hidden email]>
    Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: superstition or real?

Marc Pinnell-3
+1 SRV

====================
Marc Pinnell
Director of Web Services
[hidden email]
www.shasta.com                                    
833 Mistletoe Lane, Suite A1
Redding, CA  96002
530-224-6866  Ext. 100
530-224-2035 Fax

> On Apr 19, 2017, at 8:30 AM, Dave Bruhn <[hidden email]> wrote:
>
> Which played it better?
> Stevie Wonder: https://www.youtube.com/watch?v=0CFuCYNx-1g
> Stevie Ray Vaughan: https://www.youtube.com/watch?v=JL9eO4-aDMs
>
> I’m partial to SRV’s version…
>
> But yes, that’s superstition for you.  Just do [if($VAR1 != “something”][inline…][/if]
>
> Dave
> --
> Dave Bruhn
> Senior Systems Analyst
> North Carolina Hospital Association
> PO Box 4449
> Cary, NC 27519-4449
> 919-677-4145 (office)
> [hidden email]
> http://www.ncha.org
>
> On 3/11/17, 3:00 PM, "[hidden email] on behalf of Keith M. Rettig" <[hidden email] on behalf of [hidden email]> wrote:
>
>    I have the following code structure in a lot of places;
>
>    [if( $VAR1 == “something" )][else]
>    [inline(
>     -database=‘myDatabase',
>     -table=‘myLayout',
>     ‘fieldone'=$VAR1,
>     -add
>    )][/inline]
>    [/if]
>
>    It seems to me that if I get rid of the [IF][ELSE][/IF] and replace it with some logic that is simply [IF][/IF] my pages get rendered more quickly.
>    It seems that the [ELSE] has a cost that is not zero.  I don’t really expect it to be zero, but certainly not noticeable.
>
>    Can someone set me straight that this is just superstitious behavior (or confirmation bias) or if it is a reality?
>
>    Thanks,
>    Keith.
>
>    #############################################################
>
>    This message is sent to you because you are subscribed to
>      the mailing list Lasso [hidden email]
>    Official list archives available at http://www.lassotalk.com
>    To unsubscribe, E-mail to: <[hidden email]>
>    Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>