Make repo graph work for large repos on slower machines