Neither... It's really just a brute force n-body simulation (particle-particle).
The 'dust' that makes up the galaxies, rings, and collision particles don't dramatically impact the performance of the simulation because they don't have any mass and don't effect any other bodies in the system.
Updating the code to use more a more efficient algorithm (which would improve performance) is planned for a future release.