More performance improvement: don't constantly reallocate huge edit graphs