Pluseq - Optimize Existing Code
Posted: Sat Jul 04, 2009 5:58 am
This is in response to a question posted on the old Brforum.
If the attachment box (as advertised on this forum) worked, then the 2 programs would be here, but I do not see where I can attach the files on this computer. Where do you attach files, and if it does not show up, how can I get it to display?
I found pluseq.wb plus a version I wrote called fast.wb.
These basically optimize your existing code
Pluseq does this: let a=a+1 -> let a+=1
Fast.wb does that and combines separate let lines into let xxxxxxx !: let yyyyyyy
combines print lines
and changes "IF N = 0" to "If not N"
All of these things will speed up your code.
You have the option in Fast.wb to select which ones of these that you want to do by turning on/off the flag for combinelet, combineprint, or equalzero. If you use .brs as source, you will have to modify the programs.
These are based on Gary Hoff's "Speed Tips" published around 1990 - 1995 and distributed at a WB conference in Detroit.
I wish I could find my copy of this. Anyone still have a copy?
If the attachment box (as advertised on this forum) worked, then the 2 programs would be here, but I do not see where I can attach the files on this computer. Where do you attach files, and if it does not show up, how can I get it to display?
I found pluseq.wb plus a version I wrote called fast.wb.
These basically optimize your existing code
Pluseq does this: let a=a+1 -> let a+=1
Fast.wb does that and combines separate let lines into let xxxxxxx !: let yyyyyyy
combines print lines
and changes "IF N = 0" to "If not N"
All of these things will speed up your code.
You have the option in Fast.wb to select which ones of these that you want to do by turning on/off the flag for combinelet, combineprint, or equalzero. If you use .brs as source, you will have to modify the programs.
These are based on Gary Hoff's "Speed Tips" published around 1990 - 1995 and distributed at a WB conference in Detroit.
I wish I could find my copy of this. Anyone still have a copy?