Currently all the stars sampled from the IMF are stored in memory to be used by the synthetic cluster generation. This is not required, as the stars with the lowest masses (the largest in number) will very likely not be used. To save memory we could:
Read all the loaded isochrones
Move them by the minimum distance modulus and extinction
Store the minimum mass (for all the isochrones) above the observed magnitude cut
Discard masses below this limit for the sampled IMF
Currently all the stars sampled from the IMF are stored in memory to be used by the synthetic cluster generation. This is not required, as the stars with the lowest masses (the largest in number) will very likely not be used. To save memory we could: