Memory Allocation in Java



Hi All -

Problem: I have a large array of floating point numbers I need to look
for. These results come from a brut-force grid search, where the
coordinates (x,y) are non-parametric test results.

The problem is that the length of x and y, and thus the size of the grid is
quite large. The length is a minimum of 120,000 both directions on the
grid, for a total of 14,400,000,000 possible combinations. Which obviously
consumes a lot of memory -- somewhere on the order of 500 MB, if 32-bit
floating point.

I'm trying to think through the best way to handle this. Currently, I'm
setting up an array Array[][] results = new Array[120000][120000].


Questions
When intitailizing the array, the ide usually hangs. Is the compiler
trying to find contingous memory?
Is there a better way to handle this the results? If I initialized a
vector of length 14.4 million, would that be faster? Any ideas are greatly
appreciated.

Thanks, chris
.



Relevant Pages

  • Re: Memory Allocation in Java
    ... I have a large array of floating point numbers I need to look for. ... These results come from a brut-force grid search, where the coordinates are non-parametric test results. ... Which obviously consumes a lot of memory -- somewhere on the order of 500 MB, if 32-bit floating point. ... When intitailizing the array, the ide usually hangs. ...
    (comp.lang.java.help)
  • Re: Memory Allocation in Java
    ... These results come from a brut-force grid search, where the coordinates are non-parametric test results. ... Which obviously consumes a lot of memory -- somewhere on the order of 500 MB, if 32-bit floating point. ... If the dimensions are correct, I hope you have a 64-bit ...
    (comp.lang.java.help)
  • Re: Memory Allocation in Java
    ... I have a large array of floating point numbers I need to ... These results come from a brut-force grid search, ... When intitailizing the array, the ide usually hangs. ... initialize the array along the X axis and then intiatialize an array ...
    (comp.lang.java.help)
  • Re: Memory Allocation in Java
    ... These results come from a brut-force grid search, where the coordinates are non-parametric test results. ... Which obviously consumes a lot of memory -- somewhere on the order of 500 MB, if 32-bit floating point. ... If the dimensions are correct, I hope you have a 64-bit ...
    (comp.lang.java.help)
  • Re: Virtual grid
    ... just ditch the array & load the data directly to the grid. ... Populating the grid from a file will be somewhat slower than from an array (memory), ... > want to display it in a flexgrid control. ...
    (microsoft.public.vb.controls)