Banks vs Arrays

Blitz3D Forums/Blitz3D Programming/Banks vs Arrays

I quite like banks actually; they may be slightly slower than arrays depending on your usage, but the fact that you can slam a bank handle into a type instance field means you can store a shedload of local variables in a 100% flexible format per instance without having to predefine anything other than the header format at design time.

Pretty much the only thing I still use arrays for are tiled maps, and even then I've started to use banks for those instead (especially on certain i/o routines, like grabbing from dlls or reading from the filesystem).