[Coco] Color BASIC optimization challenge – scaling

richec rcrislip at neo.rr.com
Sat Mar 14 14:23:07 EDT 2020


On Fri, 13 Mar 2020 08:30:10 -0500
Allen Huffman <alsplace at pobox.com> wrote:

> On Mar 13, 2020, at 12:33 AM, Walter Zambotti <zambotti at iinet.net.au>
> wrote:
> > 
> > Try changing the inner loop to remove all calculations like this
> > 
> > 115 P2=P+32:H2=P+H*32:BK$=STRING$(W,175)
> > 120 FOR A=P2 TO H2 STEP 32
> > 130 PRINT @A,BK$
> > 140 NEXT A
> > 
> > I believe I chopped 7 seconds off the time.  
> 
> Nicely done! I’ll be sure to include this tip in the follow up
> article.
> 
> Someone else did that too and it’s a step I hasn’t even thought
> about. When I discussed numbers in u series it was not even testing
> math:
> 
> https://subethasoftware.com/2017/02/14/optimizing-color-basic-part-5/
> 
> Thanks!
> 

Great series Allen. Thank you very much

RECrislip


More information about the Coco mailing list