Re: how to create an array for 15000 integers?



I had a similar problem before and the good folks in here listened to
my silliness about ram disks and then one realized my error and
directed me towards malloc(). When you use malloc() you do not exceed
your program's image size limitations and other limits as well. I now
load various data files in their entirety and the speed enhancement of
re-reading the data repeatedly is sweet. For example: 20+ years of US
T-bill ticks with contract tags is one file of 181,000+ KB of data
that is opened at the same time as a statistical data file with a size
of 159,000+ KB. Both of these files are composed of binary structures
and are treated like huge arrays with simple indexing. malloc() works
miracles at times. :)
.