what the maximum size of an array allowed?

Started by
15 comments, last by menyo 12 years, 5 months ago

[quote name='weka' timestamp='1319683180' post='4877440']
Honestly, don't even worry about it. The most people use per array, on average, is probably less than five hundred.


blink.gif What?
[/quote]

Oh, I am sorry. I read that wrong. I thought the NUMBER of arrays.. not the size. My apologies.
Advertisement

[quote name='Cornstalks' timestamp='1319684388' post='4877443']
[quote name='weka' timestamp='1319683180' post='4877440']
Honestly, don't even worry about it. The most people use per array, on average, is probably less than five hundred.


blink.gif What?
[/quote]

Oh, I am sorry. I read that wrong. I thought the NUMBER of arrays.. not the size. My apologies.
[/quote]

I don't think thats making any more sense....

[quote name='weka' timestamp='1319859875' post='4878111']
[quote name='Cornstalks' timestamp='1319684388' post='4877443']
[quote name='weka' timestamp='1319683180' post='4877440']
Honestly, don't even worry about it. The most people use per array, on average, is probably less than five hundred.


blink.gif What?
[/quote]

Oh, I am sorry. I read that wrong. I thought the NUMBER of arrays.. not the size. My apologies.
[/quote]

I don't think thats making any more sense....
[/quote]
Have you ever seen anyone seen more than 1000 sets in an array? test[1000]


[quote name='menyo' timestamp='1320005535' post='4878672']
[quote name='weka' timestamp='1319859875' post='4878111']
[quote name='Cornstalks' timestamp='1319684388' post='4877443']
[quote name='weka' timestamp='1319683180' post='4877440']
Honestly, don't even worry about it. The most people use per array, on average, is probably less than five hundred.


blink.gif What?
[/quote]

Oh, I am sorry. I read that wrong. I thought the NUMBER of arrays.. not the size. My apologies.
[/quote]

I don't think thats making any more sense....
[/quote]
Have you ever seen anyone seen more than 1000 sets in an array? test[1000]
[/quote]

Yeah. Have you? What about loading a file into memory? Even if it's only a few kilobytes, it's still a few thousand characters. It's really easy (and not rare at all) to have arrays with lengths more than 1000.

And at any given point in time, applications will often have lots of different arrays. Depending on the application, there can be hundreds of arrays used, each with thousands of elements.

I assume by "sets" you actually mean "elements".
[size=2][ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

Have you ever seen anyone seen more than 1000 sets in an array? test[1000]

Not only have I seen it, I have done it.

[quote name='weka' timestamp='1320009272' post='4878687']
[quote name='menyo' timestamp='1320005535' post='4878672']
[quote name='weka' timestamp='1319859875' post='4878111']
[quote name='Cornstalks' timestamp='1319684388' post='4877443']
[quote name='weka' timestamp='1319683180' post='4877440']
Honestly, don't even worry about it. The most people use per array, on average, is probably less than five hundred.


blink.gif What?
[/quote]

Oh, I am sorry. I read that wrong. I thought the NUMBER of arrays.. not the size. My apologies.
[/quote]

I don't think thats making any more sense....
[/quote]
Have you ever seen anyone seen more than 1000 sets in an array? test[1000]
[/quote]
I assume by "sets" you actually mean "elements".
[/quote]
Yes, elements.



[quote name='menyo' timestamp='1320005535' post='4878672']
[quote name='weka' timestamp='1319859875' post='4878111']
[quote name='Cornstalks' timestamp='1319684388' post='4877443']
[quote name='weka' timestamp='1319683180' post='4877440']
Honestly, don't even worry about it. The most people use per array, on average, is probably less than five hundred.


blink.gif What?
[/quote]

Oh, I am sorry. I read that wrong. I thought the NUMBER of arrays.. not the size. My apologies.
[/quote]

I don't think thats making any more sense....
[/quote]
Have you ever seen anyone seen more than 1000 sets in an array? test[1000]


[/quote]

I'm doing [2048*2048] right now....
And need multiple arrays or need to stuff a single one with big structs which would be inneficient for the project i'm currently on.

This topic is closed to new replies.

Advertisement