stable

Clone or download

Read-only

request #19251 Tag and branches research with lot of tags/refs can be very long

The rest routes GET /git/{id}/branches and GET /git/{id}/tags To reproduce the issue you need to generate several thousands branches and tags. After this, you can go on the git repository and try to select a branch or tags in the dropdown. Performance differences with blackfire for 3135 branches and 4876 tags (limit 50): GET /git/{id}/branches : Wall time : ~ 2.3s --> ~ 600 ms GET /git/{id}/tags : Wall time : ~ 2s --> ~ 700ms Change-Id: I946775eeda00fef0e8e7ada8aecd695b90462881

Modified Files

Name
M plugins/git/include/GitPHP/git/Project.php +10 −8 Go to diff View file
M plugins/git/include/GitPHP/git/ProjectProvider.php +6 −1 Go to diff View file
M plugins/git/include/Git_Exec.class.php +14 −0 Go to diff View file
M plugins/git/include/REST/v1/RepositoryResource.class.php +17 −16 Go to diff View file
M plugins/git/tests/unit/Git_ExecTest.php +22 −0 Go to diff View file