array limits
Kenneth Brody
kenbrody at bestweb.net
Thu Apr 15 17:52:26 PDT 2004
"Brian K. White" wrote:
[...]
> > dim array[32767](9999) or one that has dim array[32767](32767)
> >
> > does not change the size of the token table built. It is 262269.
>
> I wouldn't expect it to change the size of the token table except by one
> byte maybe since 32767 is one character longer than 9999
While that makes a difference in the prc source file, it makes no
difference in a compiled tok file. Field lengths are stored in two
bytes.
> I would expect it to maybe change the amount of memory the table requires
> when running.
Definitely. It takes approximately 22,768 more bytes to store a field
of 32,767 characters than it does a field of 9,999 characters. And, if
you have 32,767 of those fields, I would expect approximately 711.5MB
more memory to be used.
[...]
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody at spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
More information about the Filepro-list
mailing list