High performance algorithms for quantum gravity and cosmology