WOW, using "var" REALLY makes a big difference in speed!

i’ve always seen people using “var” declarations in their code and i never knew what the point of it was, but then the other day i read about how they’re faster for the computer to access in one of the tutorials (the “speed tips” part in a section of the “scripting 3D in flash” tutorial by senocular, http://www.kirupa.com/developer/actionscript/solid_pyramids.htm ), and i altered a bit of code of mine that had a lot of calls from variables in arrays, assigning those variables to local variables, and the slowdown that the code caused before virtually disapeared! everyone probably already knows this, but i’m still somewhat of a newb to programming, so it came as quite a shock to me :smiley: i had no idea that variable calls could slow down the computer so much, i figured that the time they take to execute is nothing compared to the time it takes to do things like math functions and stuff

anyone got any other “common sense” tips on how to make faster code, that a newb like me may not know about?