Well first off, sorry if this is in the wrong section, it seems this section is lifeless and the general board is a bit dead, so I thought I'd liven it up a bit with a discussion in the tuts section about coding efficiency, it could be better in a general section but then everyone can contribute something here so we can all learn something. :P Secondly, it helps my activity.
Well, so, the main idea of this thread is for some of us coders who are looking to improve how efficiently they code, in other words, how we can code without slowing the computer down by say, forgetting to free Bitmaps and such. A few of my ways I've been trying to cut down on loading too much information when it isn't needed is by freeing all my forms, bitmaps and DTMs, the DTMsbeing pretty recent. Of course, freeing bitmaps, forms and DTMs should all be pretty common, but what I've picked up on more is using more local variables rather than having a few more global variables clogging up the careful clockwork that goes on under SCAR's cover, I'd love it if someone such as Freddy would enlighten me as to what happens to local variables before, and after the procedure/function has been called, I believe they're destroyed after use, and reloaded when needed. Also, what about repeats with no waits? I've seen, and used them before, but I usually have a small wait at an end of a loop, sometimes I've almost crashed because of a lack of waits, despite 2GB ram.
Obviously this is all pretty common stuff, but I would like to learn more ways to improve my code, and since I've been a bit busy in real life, catch up on some scripting time while I have it. :P