Re: Why some people have not upgraded
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 31, 2005
- 517 views
Bernie Ryan wrote: > Vincent: > > You can improve loading speed by writing your code > to parse in a different way. > > 1. don't do dynamic includes that wastes time. > 2. use only decimal numbers as constants and values because the parser has > to convert them from hex. It's not going to make any difference. The scanner also has to read and convert decimal numbers from text strings. Did you think computers use decimal internally? Please use whichever base is more readable. > 3. don't use append and prepend while parsing describe a large sequence > all at once instead of building it a piece at a time. These appends and prepends will be performed at run-time, not parse time, and unless you have many thousands of them, you won't notice any difference. > 4. spend more time studing how your code is being parsed and less > complaining > about loading speed. I would say write your code in as readable a manner as you can, and forget about trying to shave a millisecond off your load time. The parser is open source. Any one can study it and recommend ways to speed it up. Something that actually *will* improve your load time, on very old, slow machines with small RAM, is to remove any "with trace", "with profile" or "with profile_time" statements that you are no longer using. This will also help you at run-time. You should search your copy of Win32Lib, IDE etc. to see if any were left in there. And of course you can achieve *zero* parse time if you bind, shroud or translate any large program that you use a lot. For smaller programs, under about 10,000 lines, I wouldn't worry about it. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com