Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Oberon > Optimization qu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 447 of 476
Post > Topic >>

Optimization question

by "Xcriber51" <ken@[EMAIL PROTECTED] > Nov 2, 2007 at 08:01 AM

Hi

A very minor detail.

If I used a for loop as below, referring to a string 's' (whose length
doesn't change in the routine),...

    FOR i := 0 TO LEN(s$)-1 DO...

...does BlackBox optimize the expression "LEN(s$)-1" so that it doesn't
recalculate it at every iteration, or do we have to eliminate that
manually thus...

    len := LEN(s$)-1;
    FOR i := 0 TO len DO ...
    
?

Thanks!


-- Ken

--
Message posted using
http://www.talkaboutprogramming.com/group/comp.lang.oberon/
More information at http://www.talkaboutprogramming.com/faq.html
 




 5 Posts in Topic:
Optimization question
"Xcriber51" <  2007-11-02 08:01:52 
Re: Optimization question
Stefano Ferrari <ferra  2007-11-02 06:38:18 
Re: Optimization question
"Xcriber51" <  2007-11-02 15:14:23 
Re: Optimization question
"Xcriber51" <  2007-11-03 03:55:25 
Re: Optimization question
"Chris Burrows"  2007-11-03 09:52:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 22 22:41:42 CDT 2008.