|
-
June 22nd, 2011, 01:40 AM
#1
multidimensional arrays
Is it possible to have a multi dimensional array of double type, with size
[10][50][120][120] - which holds nearly 10MBits of data ?
Is it possible to transfer this amount to applet, from servlet?
-
June 22nd, 2011, 04:51 AM
#2
Re: multidimensional arrays
 Originally Posted by talemu
Is it possible to have a multi dimensional array of double type, with size
[10][50][120][120] - which holds nearly 10MBits of data ?
Is it possible to transfer this amount to applet, from servlet?
You store 10*50*120*120 * 8 byte = 57.6 MByte of data. This would also be the memory footprint of a one-dimensional array of doubles.
Now multi-dimensional arrays are stored as arrays of arrays so the memory requirement increases somewhat. This is because in addition to the actual doubles also references to arrays are stored internally. You can approximate this as 10*50*120 * 4 byte = 0.24 MByte of references which should be added.
So you have lets say 60 MByte of data. This is nothing for a computer today which usually has several GByte of memory.
60 MByte corresponds roughly to the Java SDK download which usually takes about a minute or two (over my 10 Mbit/s connection). So this amount of data certainly can be transfered but whether the time it takes is feasible depends I guess on how much your users cherish the goodies they're waiting for.
Last edited by nuzzle; June 22nd, 2011 at 08:26 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|