View previous topic :: View next topic |
Author |
Message |
sendhil Beginner
Joined: 06 Sep 2006 Posts: 17 Topics: 6
|
Posted: Fri Jan 26, 2007 5:28 am Post subject: Maximum limit of a Stem. |
|
|
Hi,
I am parsing a file which is big enough.
And i am building a stem variable.The limit of the stem variable is to go till 4,00,000.I am not sure abt the maximum limits of stem.
I need to know whether i can go ahead usign a single stem variable ?
Regards
Sendhil |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Jan 26, 2007 4:51 pm Post subject: |
|
|
you are limited by 2 things. The amount of memory, and how long you want to wait for your program to run.
Stems are not simple arrays. In other words, you do not need to use just numbers as 'indices' (tails). You can do XYZ='BIRD' ; STEM.XYZ="CAGE"; (Stems are associative arrays, I am told).
In practice, handling this is not a very fast process. Although it is probably implemented as some sort of hashing routine, it gets slow after a while and takes up a fair amount of storage. If you can, just try it. But unless you need to process all items at once in storage, you might do better to buffer the data using a limited number of elements. Especially since the next time you see this file, it may be 100 times as large as it was when you wrote the program. |
|
Back to top |
|
|
warp5 Intermediate
Joined: 02 Dec 2002 Posts: 429 Topics: 18 Location: Germany
|
Posted: Mon Jan 29, 2007 3:22 am Post subject: |
|
|
What are you trying to do? It does not seem to make much sense to have a stem that large and processing that amount of data with a rexx. |
|
Back to top |
|
|
|
|