Banks vs Arrays
Blitz3D Forums/Blitz3D Programming/Banks vs Arrays
| ||
I'm primarily looking for speed, pros and cons? Thanks!! |
| ||
Speed is a non issue with either, banks are more flexible than arrays though. |
| ||
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. |