Author Topic: [help]Arrays() and lists Limits  (Read 1904 times)

0 Members and 1 Guest are viewing this topic.

Offline Huntondoom

  • Baron
  • ****
  • Posts: 856
  • Cookies: 17
  • Visual C# programmer
    • View Profile
[help]Arrays() and lists Limits
« on: May 21, 2011, 07:00:30 pm »
for a project Im going to use big ass Arrays / lists
but what are the limits?
and how can I find out?
Aslong as you are connected to the internet, you'll have no privacy

Advanced Internet Search
Clean Up!

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [help]Arrays() and lists Limits
« Reply #1 on: May 21, 2011, 08:37:01 pm »
Where do you want to use it for?? , not better using a sql db?? or a db file like sqlite ?
~Factionwars

Offline Huntondoom

  • Baron
  • ****
  • Posts: 856
  • Cookies: 17
  • Visual C# programmer
    • View Profile
Re: [help]Arrays() and lists Limits
« Reply #2 on: May 21, 2011, 08:47:46 pm »
Where do you want to use it for?? , not better using a sql db?? or a db file like sqlite ?
temporary saving a lot of bytes, do stuff with it and put it away :P
Aslong as you are connected to the internet, you'll have no privacy

Advanced Internet Search
Clean Up!

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: [help]Arrays() and lists Limits
« Reply #3 on: May 22, 2011, 12:18:52 am »
Just test it?

Code: [Select]
// Logical code

// Test array count limit. Run until crash
loop
{
     // Add a new record to array with one byte
}

// Test array size limit. Run until crash
loop
{
     // Add a new record to array with 100k bytes
}


But, I bet arrays will have less limits, on the other hand your RAM might be your only limit..
« Last Edit: May 22, 2011, 12:19:50 am by ande »
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline Huntondoom

  • Baron
  • ****
  • Posts: 856
  • Cookies: 17
  • Visual C# programmer
    • View Profile
Re: [help]Arrays() and lists Limits
« Reply #4 on: May 22, 2011, 11:57:43 am »
Just test it?

Code: [Select]
// Logical code

// Test array count limit. Run until crash
loop
{
     // Add a new record to array with one byte
}

// Test array size limit. Run until crash
loop
{
     // Add a new record to array with 100k bytes
}


But, I bet arrays will have less limits, on the other hand your RAM might be your only limit..
I shall Test it you might hear it later from me
Aslong as you are connected to the internet, you'll have no privacy

Advanced Internet Search
Clean Up!

Offline Tsar

  • Peasant
  • *
  • Posts: 126
  • Cookies: 10
  • turing-recognizable
    • View Profile
Re: [help]Arrays() and lists Limits
« Reply #5 on: May 22, 2011, 05:57:07 pm »
I don't think there would be a limit, although depending on if your using an IDE or something there may be. Also depends on the language, if your using java there might be a limit, if your using c/++ probably not.

How big are we talking here anyways? Even if you have a array of 10,000,000 bytes that is only 9MB of memory.

Offline Huntondoom

  • Baron
  • ****
  • Posts: 856
  • Cookies: 17
  • Visual C# programmer
    • View Profile
Re: [help]Arrays() and lists Limits
« Reply #6 on: May 22, 2011, 06:01:41 pm »
How big are we talking here anyways? Even if you have a array of 10,000,000 bytes that is only 9MB of memory.

Depends on it but it should handle pretty big numbers
from 1mb to 100mb worth of bytes
depends on it though :P
Aslong as you are connected to the internet, you'll have no privacy

Advanced Internet Search
Clean Up!

Offline ca0s

  • VIP
  • Sir
  • *
  • Posts: 432
  • Cookies: 53
    • View Profile
    • ka0labs #
Re: [help]Arrays() and lists Limits
« Reply #7 on: May 22, 2011, 06:14:36 pm »
I would use lists. If you work with an array, and delete one of those members, you will have a void member (well, you could move the rest to fit but with large amounts of data it would be a pain). With lists, you can access easily to each member too and memory is used more efficiently, I think. Also, lists give you the ability of add more members (if there is enough memory available). With an array, you have to specify at compile-time its size (at least, in C). So you may get it full.

Offline Huntondoom

  • Baron
  • ****
  • Posts: 856
  • Cookies: 17
  • Visual C# programmer
    • View Profile
Re: [help]Arrays() and lists Limits
« Reply #8 on: May 22, 2011, 06:50:58 pm »
I tried to test it but It was long and boring so I stopped it:
result:
14.000.000 bytes
Aslong as you are connected to the internet, you'll have no privacy

Advanced Internet Search
Clean Up!