trac is slow when rendering the changeset page of git with many files
|Reported by:||Owned by:||Jun Omae|
|Component:||version control/changeset view||Version:|
Improve performance of
If a git changeset contains a lot of files, the rendering will be very slow. Currently the system would try to do two API calls for each file in the changeset, one for the old revision and one for the new revision. For example, if the changeset contains 100 files, then 200 git API calls will be triggered.
The trigger point should be the following lines of
if change != Changeset.ADD: old_node = self.get_node(path, old_rev, old_historian) if change != Changeset.DELETE: new_node = self.get_node(path, new_rev, new_historian)