I am working with a 16x16x16 cube of information, at each position I need to store a pair(int,int). In most use cases the majority of the cube will be holding (0,0), but there is potential for every position to hold unique information.
It might be worth noting that the only relation between the information being held in the pair(int,int) is that they are in the same position.
- The first value is likely to only be 0-9 but can be another value
- represents an attribute of that position.
- The second value represents a pattern it will be 0-6 or a combination of 1-6 in ascending order(eg 12, 123456)
- it describes the relation between the current position and the 6 adjacent positions.
- The second value can technically just be 0-64 but for my sanity while working with it I have used that pattern.
I am currently just using a 3d array but that seems like such a large waste considering that the majority of the array holds the same (0,0) value. I should also mention that I do not access this information often outside of saving and during setup.
If anyone has a suggestion for a better storage structure I would appreciate your input.