vscode-gitflow icon indicating copy to clipboard operation
vscode-gitflow copied to clipboard

Very long activation time

Open ziki77 opened this issue 3 years ago • 32 comments

Hi, the extension is good, but it takes a lot of time to activate:

image

Is this normal? Does it depend by the repo complexity?

Thanks

ziki77 avatar Apr 01 '22 07:04 ziki77

Welcome!

Thank you for finding time to write an issue and help to make this extension better. I`ll appreciate if you find some time to rate this extension here.

I`ll get to this Issue ASAP.

github-actions[bot] avatar Apr 01 '22 07:04 github-actions[bot]

This extension requires Git and Git-base core extensions you can see it in extension details page. It means that extension will not start activation until SCM is loaded. So, first after you launch VS Code it waits until SCM section loads and then it loads itself.

After CSM is loaded it might take a second, but after VS Code launch it will be definitely longer.

Anyway, thank you for nothing. If you like this extension, I'll appreciate if you rate it here https://marketplace.visualstudio.com/items?itemName=Serhioromano.vscode-gitflow&ssr=false#review-details

Serhioromano avatar Apr 01 '22 07:04 Serhioromano

Sorry, but with Git Flow extension disabled the SCM section loads in half the time (7sec vs 14sec).

ziki77 avatar Apr 01 '22 08:04 ziki77

What 14s?

Serhioromano avatar Apr 01 '22 10:04 Serhioromano

Yes but it is not the absolute value the problem, it is the difference. If it should take 1 sec more after the SCM is loaded it should be 8sec. For SCM loaded I mean from when I launch VSC to when I can see the "Changes" in SCM.

ziki77 avatar Apr 01 '22 10:04 ziki77

I'll try to check a performance.

Serhioromano avatar Apr 01 '22 11:04 Serhioromano

I've created a small test with time measurements. It turns out that delay is command git remote to get list of all remotes. I think this is the problem. But it is essential for Git Flow to know if ORIGIN exists. It is better to have it once on load than every time before command.

I'll think how I can optimize this.

Serhioromano avatar Apr 01 '22 11:04 Serhioromano

Also if ORIGIN exists it pulls all tags from it

"git" ls-remote --tags origin

Also all branches

"git" branch -r

Serhioromano avatar Apr 01 '22 11:04 Serhioromano

And it depends on how many branches, tags, ecc the repo has, I think. I can try with a very simple repo.

ziki77 avatar Apr 01 '22 11:04 ziki77

It might also depend on your connection speed. Give me 3 minutes I'll release new version where in the log you can see time what took most of the time.

Serhioromano avatar Apr 01 '22 11:04 Serhioromano

https://github.com/Serhioromano/vscode-gitflow/actions Building right now.

Serhioromano avatar Apr 01 '22 11:04 Serhioromano

It might also depend on your connection speed. Give me 3 minutes I'll release new version where in the log you can see time what took most of the time.

Mmmm yes today I work from home through VPN, I will try next time in the office.

ziki77 avatar Apr 01 '22 11:04 ziki77

Published. Give marketplace 2-3 minutes to approve. Version 1.3.3. Open OUTPUT and Git Flow stream, there should a time for every git command. Tell me what takes time.

Serhioromano avatar Apr 01 '22 11:04 Serhioromano

OK, thanks I will try and give you a feedback here.

ziki77 avatar Apr 01 '22 11:04 ziki77

Any result?

Serhioromano avatar Apr 01 '22 11:04 Serhioromano

Yes, more or less 6 sec less. Well done! In any case I think that my connection acts as bottleneck and causes also the 7 sec needed to load only the SCM. I will try in the office.

Thanks!

ziki77 avatar Apr 01 '22 12:04 ziki77

Do not forget to rate. I need it badly. Very hard to get ranged in the beginning.

Serhioromano avatar Apr 01 '22 12:04 Serhioromano

Already done ;)

ziki77 avatar Apr 01 '22 12:04 ziki77

Hi, I tried in the office so in the same LAN of the git server. Without the extension it take 3sec to load SCM, with the extension enabled like from home after the latest fix (8-9sec).

ziki77 avatar Apr 05 '22 07:04 ziki77

Hmmmm, I am going to look into it when I come back home from trip.

Serhioromano avatar Apr 18 '22 09:04 Serhioromano

Due to gitflow extension my git repo detection under git tab takes very log time ~10s

binarymaker avatar Oct 06 '22 12:10 binarymaker

Due to gitflow extension my git repo detection under git tab takes very log time ~10s

I think it is because Git Flow also fetch remote branches if your repo have long history or many files it might take few seconds.

Serhioromano avatar Oct 17 '22 10:10 Serhioromano

My gitflow takes a long time, in operations like creating start feature, start hotfix, I'm windows. Any suggestions on how to improve performance.

osvaldont avatar Jul 28 '23 20:07 osvaldont

My gitflow takes a long time, in operations like creating start feature, start hotfix, I'm windows. Any suggestions on how to improve performance.

Do you work in WSL?

Serhioromano avatar Jul 30 '23 05:07 Serhioromano

No. I'm on windows.

osvaldont avatar Aug 03 '23 10:08 osvaldont

No. I'm on windows.

What is your repository? Is the size is big? You have HDD or SSSD?

Serhioromano avatar Aug 04 '23 09:08 Serhioromano

My repository is small, it has only one class. My PC is SSD. To make a git flow init, it takes 6 minutes

osvaldont avatar Aug 05 '23 04:08 osvaldont

Ha a delay too when you switch branches

osvaldont avatar Aug 05 '23 04:08 osvaldont

You mean delay when you run git flow init in a terminal? Then it is not related to my extension. It is a delay by GitFLow AVH

Serhioromano avatar Aug 07 '23 08:08 Serhioromano

You're right. When I run git commands it's super fast, but when I run commands from the git flow extension, it's very slow. Any tips to make it faster?

osvaldont avatar Aug 09 '23 11:08 osvaldont