Quidel Cela
Registered User
Join date: 20 Oct 2005
Posts: 14
|
12-17-2005 21:30
How much can a list contain? I tried making a lotto ball with just 1 list and apparently the entire script will just break down when the tickets have reached 60-86 tickets...
How do I get around this? I want to be able to sell about 200 tickets...do I just use multiple lists each containing 50 ticket holder's keys to be safe?
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
12-17-2005 21:41
From: Quidel Cela How much can a list contain? I tried making a lotto ball with just 1 list and apparently the entire script will just break down when the tickets have reached 60-86 tickets...
How do I get around this? I want to be able to sell about 200 tickets...do I just use multiple lists each containing 50 ticket holder's keys to be safe? I would have the main script grab the info to be stored in a list, then i would pass that info to another script that would store the lists. I would also add a ++count with every peice of info recieved. When it reaches an increment of 50 I would start link messaging the info to another list script. Hope that helps. ~Cid
|
Quidel Cela
Registered User
Join date: 20 Oct 2005
Posts: 14
|
12-17-2005 21:56
Oh boy, gonna be lotsa lists =)
|
SpankMe Pinkerton
Registered User
Join date: 13 Feb 2005
Posts: 158
|
12-18-2005 18:41
With a little planning, you will find you can do most traditional list scripts using strings. If you can get by storing the information in one large string, you will significantly reduce the memory required because lists not only have to store the information, they have to store the variable type as well. Since the memory required for the string is directly proportional to the length, you can check that the string is under a specified length and split it into a second script if required. Also, consider having all of your extra functions etc in a separate script. The memory aloted to one script is very limited. By the way, I have done some very detailed speed tests which show careful use of strings instead of lists can be much much faster (depending on the specific application).
|