- edited description
Pull Requests Files is Extremely Slow which blocks me from reviewing code diffs effectively
Windows 7/ Latest version of VScode & latest version of Bitbucket extension.
It takes 3-10 seconds to open each file difference in the pull requests which makes it very hard to do a code review.
Comments (19)
-
Account Deactivated reporter -
Account Deactivated reporter - changed status to closed
checking out the repo made it much faster.
-
Account Deactivated reporter - changed status to open
Actually, the issue is still persisting... it was fast for a while, but then again it became slow.
-
Account Deactivated @{5bfc2496d9499e1a8fbca47e} I suspect the git operations that the extension does might be slow sometimes.
- Does it takes a few seconds to do git operations (e.g.
git fetch
) on command line for the repo? Try updating the git version on your machine and see if that improves this time. - Does the pull request on the website load quickly, or does that take few seconds too?
- Does it takes a few seconds to do git operations (e.g.
-
Account Deactivated reporter the git version is the latest, and git operations are very fast.
The pull requests on the website loads the whole page at once, and it’s pretty quick. While the plugins takes 5 seconds to loads each file diff.
-
Account Deactivated Could you check a couple more things to figure out what's causing this:
- Open the diff view for a file, close the tab, and open the diff view for the same file again. Does it take a few seconds when you open the file the 2nd time?
- Run
Git: Show Git Output
from VS Code command palette to open the git output. When you open the diff view, you should see something like> git show <commit id>:<file name>
. Run that git command on the command line and see how long that takes. (Make sure that VS Code and command line are using the same version of git executable. You can search forgit.path
in VS Code settings to check which version it is using)
-
Account Deactivated reporter - Sometimes it’s indeed faster the second time.
-
Account Deactivated reporter I get an error, when trying to copy the git show command,
\$ git show 18293db1e6d6763e445e936e0c590111b35a8d4f:../../../c:/aasource/PROJECT_NAME/Angular/src/app/
-
Account Deactivated Looks like the extension is trying to load the right file but it has
../../..
preceding it so git command is failing, triggering a retry and fallback to API response which explains why it is taking a few seconds. We will investigate how to fix this in our code. Meanwhile can you answer a couple more questions:- Do you use symlinks or git submodules for this repo?
- Can you try doing a fresh clone of the repo to a different folder and opening that folder in VS Code and let us know if that helps?
-
Account Deactivated reporter - not sure what that means. how can I get this info ?
- This is indeed a fresch repo, the i have just cloned from a remote Bitbucket repo.
-
Account Deactivated I was wondering if you manually made a symlink but as this was cloned recently, that shouldn't be the case. Thanks for the info. We'll look into it.
-
Account Deactivated Linked to VSCODE-898
-
Account Deactivated - changed component to triaged
-
Account Deactivated @{5bfc2496d9499e1a8fbca47e} We need some help with testing as we were not able to reproduce the issue. The extension gets the repository path from VS Code and normally it's the full path from root without any leading
../../
prefix.Could you download and install the extension from https://bitbucket.org/atlassianlabs/atlascode/downloads/atlascode-2.2.1-bbissue-322.vsix and let us know if that improves the performance? (Run
Extensions: Install from VSIX
from command palette to install) -
Account Deactivated reporter Hi Pramod,
yes, this seems to have fixed that issue.
-
Account Deactivated Thanks for testing. That's great to hear! We'll include the fix in the release.
-
- changed status to resolved
We've just released version 2.3.0 which includes a fix for this issue.
-
Account Deactivated reporter I have installed the latest version, and it’s working great. you guys are awesome! thanks.
-
- removed component
Removing component: triaged (automated comment)
- Log in to comment