[progress Communities] [progress Openedge Abl] Forum Post: Re: What's The Use Of The Assign...

  • Thread starter Thread starter peggycole
  • Start date Start date
Status
Not open for further replies.
P

peggycole

Guest
Does anyone know what the reason is that this: ETIME(TRUE). DO ix = 1 TO 5000000: i1 = 1. i2 = 2. i3 = 3. i4 = 4. i5 = 5. i6 = 6. i7 = 7. i8 = 8. i9 = 9. END. etim = ETIME(FALSE). MESSAGE etim VIEW-AS ALERT-BOX INFO BUTTONS OK. is slower then this: ETIME(TRUE). DO ix = 1 TO 5000000: assign i1 = 1. assign i2 = 2. assign i3 = 3. assign i4 = 4. assign i5 = 5. assign i6 = 6. assign i7 = 7. assign i8 = 8. assign i9 = 9. END. etim = ETIME(FALSE). MESSAGE etim VIEW-AS ALERT-BOX INFO BUTTONS OK. Of course grouping the statements is the fastest way but one of our developers asked me why seperated assign-statements are faster then statements without the assign keyword and I really can't explain the difference. Does the compiler something different when he finds an assign keyword?

Continue reading...
 
Status
Not open for further replies.
Back
Top