is this too many variables?

Let’s say I had an x array of 30,000 integers. What if I had 30,000 y arrays of those x arrays. And then 30,000 z arrays of y arrays. That would be a total of =27,000,000,000,000 integer variables. I’m assuming this is overboard but would it be a problem? Assuming I don’t further expand it or attempt to loop through them.

Each integer uses 4 bytes, so that’s over 24 terabytes of data. Yes, that’s way too many data. Whatever it is you’re trying to do, you probably better look into a different way of doing it.

Lol yeah I figured. Just hoping I was wrong

Hello,
Using an array of vectors and break it to use would reduce it. Or creating a string of consecutive integer variables. Maybe structs can help you too. I haven’t look at them enough to do more than name them.

Most of those integers would have gone unused anyway. It was a silly theory to prevent a lot of looping lol. I could store what I need in a long string and then scan it like a text file. I’ve got some other ideas that will work, but I’m just exploring my options for now. Thanks! :slight_smile: