BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Algorithms

Or, you could just turn it off and live in bliss forever. Smiley Wink
0 Kudos
Message 11 of 16
(6,454 Views)

Why is Constant Folding so bad?  In most cases the results are the same.  Only in rare cases will there be a problem.  Like race conditons, we need to learn how to recognize them.

 

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 12 of 16
(6,450 Views)

tbob wrote:

Why is Constant Folding so bad? 


I don't think he was alluding to it being bad. He just wasn't sure why it was happening in that particular instance.

0 Kudos
Message 13 of 16
(6,446 Views)

smercurio_fc wrote:

tbob wrote:

Why is Constant Folding so bad? 


I don't think he was alluding to it being bad. He just wasn't sure why it was happening in that particular instance.


 

Ohh.  OK.  It is folded because once it hits the loop, the value stays constant.

 

Why do they call it Constant "Folding"?  What do they mean by folding?  Does the compiler make a crease in the constant, fold it in half, and tuck it away for safe keeping?

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 14 of 16
(6,440 Views)

smercurio_fc wrote:
Or, you could just turn it off and live in bliss forever. Smiley Wink

 

I don't think you can turn off constant folding. All you can configure is if you want to see the fuzzy wires/structures or not. 😉 
 
0 Kudos
Message 15 of 16
(6,437 Views)

altenbach wrote:

smercurio_fc wrote:
Or, you could just turn it off and live in bliss forever. Smiley Wink

 

I don't think you can turn off constant folding. All you can configure is if you want to see the fuzzy wires/structures or not. 😉 
 

Well, yes, that's what I meant. I guess he'll just have to live with ficticious bliss. Smiley Happy

0 Kudos
Message 16 of 16
(6,430 Views)