‎12-15-2009 02:08 AM
I want to know what is the maximum number of samples a ‘shift register’ can hold in memeory pls reply me ASAP.
‎12-15-2009 02:20 AM
Santhosh,
there is no limit you can reach by any means of common sense. If i had to guess, i'd say that a single loop can include up to 2^16 or 2^32 shift registers.
Regarding your question: How many can i use at a time without running into memory issues.....well that heavily depends on the data you keep in the shift registers. If you kepp only scalar numeric values like double (8 bytes), you can use as many shift registers as you like (with the given limit i stated above as guess). If you contain large images in your shift register, you probably can have only a single shift register....
hope this helps,
Norbert
‎12-15-2009 02:58 AM
Hi Norbert,
In one while loop I am using singl Shift register. In given 2D array of DBL to shift register and I am appending every time some 16*1000 array to that 2D array after some time I am getting 'Not Enough Memory' error, so I want to know the limitation of shift register samples.
‎12-15-2009 03:02 AM
Santhosh,
your problem is not the shift register but the append array function. What is the maximum array size you want to handle? Keep in mind that your memory i
a) limited
b) fragmented
Both a and b are system dependend (e.g. do you have the /3GB option already set?), but they do limit your actual usable memory.
Norbert
‎12-15-2009 03:33 AM
hi,
i want to know that array limit if i know that i will change in my application as per that
‎12-15-2009 03:44 AM
‎12-15-2009 03:45 AM
The limit in the array size depends on your system. E.g. available RAM, fragmentation is important here (see also this thread). So nobody can answer your question except you. You have to benchmark your system.
Most important point: Preallocate the array, keep it in the shift register and work with "Replace Array Subset".
hope this helps,
Norbert
‎12-15-2009 03:51 AM