BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Why some people say Local Variables are bad...

I thought it is about relativistic effects when dealing with race conditions. 😄

0 Kudos
Message 311 of 396
(7,903 Views)

I thought is was about bringing back the SDE but I may be reading it in a different reference frame. If so forget this post for now.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 312 of 396
(7,899 Views)

Let's just wait until alfa gets here. Then we'll know what this thread is really about.

Message 313 of 396
(7,895 Views)

NOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

0 Kudos
Message 314 of 396
(7,832 Views)

Recieved via e-mail from one of my favorite customers this morning;

 


 

Q: Why are quantum physicists so poor at sex?
A: Because when they find the position, they can't find the momentum, and when they have the momentum, they can't find the position.

 


and


 

And remember, anything that doesn’t matter, doesn’t have any mass


 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 315 of 396
(7,818 Views)
Message 316 of 396
(7,760 Views)

I thought this made for a nice demonstration of what a race Condition looks like.

 

 

 

If that app was written in LV, I suspect a local was involved.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 317 of 396
(7,711 Views)

I don't know why I did this. It's getting way offtopic but the thread is on Breakpoint. Smiley Very Happy

 

Einstein.png

=====================
LabVIEW 2012


Message 318 of 396
(7,680 Views)

Reading a local variable in a for loop inside yet another for loop can be detrimental to performance.

0 Kudos
Message 319 of 396
(7,620 Views)

@Wayne.C wrote:

Reading a local variable in a for loop inside yet another for loop can be detrimental to performance.


That person's big problem was the build array 11850 times.  But yes, the local will slow them down a little bit.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 320 of 396
(7,618 Views)