Banks vs Arrays

Blitz3D Forums/Blitz3D Programming/Banks vs Arrays

BLaBZ(Posted 2009) [#1]
I'm primarily looking for speed,

pros and cons?

Thanks!!


Matty(Posted 2009) [#2]
Speed is a non issue with either, banks are more flexible than arrays though.


Jasu(Posted 2009) [#3]
Arrays are faster. I've measured them a little less than 20% faster, enough to make a difference with large amounts of data.

Banks are more memory space efficient and easier to push around in big chunks, for example write to disk or send over net.

If speed is an issue, use arrays. If amounts are small, it doesn't matter which you use.