Declaring Local and Global in a function

BlitzMax Forums/BlitzMax Programming/Declaring Local and Global in a function

what kind of impact does the use of locals vs globals have?

As has been said, Ram usage vs internal CPU caches and registers... In B3D/B+, all variables (Local or Global) were stored in RAM.

Max is much smarter in that it will store as many Local variables in the CPU registers as possible... which means Global variables are the same speed as they have always been, but Local variables are the fastest a variable can possibly be.