If we want to run multiple instances of this on the same node, we need to keep the ram consumption down. A few small optimizations (like storing only part of the galaxy in RAM at a time, and limiting the scope of variables so they are cleaned up after they are no longer needed) should improve the number of instances that can be run on a given node.
If we want to run multiple instances of this on the same node, we need to keep the ram consumption down. A few small optimizations (like storing only part of the galaxy in RAM at a time, and limiting the scope of variables so they are cleaned up after they are no longer needed) should improve the number of instances that can be run on a given node.