hyperion-rt / hyperion

Hyperion Radiative Transfer Code
http://www.hyperion-rt.org
BSD 2-Clause "Simplified" License
52 stars 26 forks source link

Voronoi: optimize how neighbors are stored #107

Closed astrofrog closed 9 years ago

astrofrog commented 10 years ago

At the moment, the table of neighbors in the Voronoi description typically contains more -10 values than valid values. An alternative approach would be to store all the neighbors in a single 1D array, and to then store imin and imax in the main table.

This would reduce the memory footprint at read-time by up to a factor of 3-4 which would not be negligeable!

astrofrog commented 9 years ago

Closed by https://github.com/hyperion-rt/hyperion/pull/128 - thanks @bluescarni!