Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving tabby startup time #8528

Merged
merged 3 commits into from Jun 6, 2023
Merged

Conversation

Clem-Fern
Copy link
Contributor

@Clem-Fern Clem-Fern commented Jun 2, 2023

Hi @Eugeny,

I found some issues about how tabby can be slow to launch in some case (#6295 , #7390 , #6253 ).
After taking a quick look, I saw that installed plugins are loaded one after another at the app startup.

This PR aim to improve the startup time by finding and loading the plugins simultaneously asynchronously.

Startup on latest release with 0 plugins : ~2.9sec
Startup on latest release with 8 plugins : ~3.5sec

Startup on this PR with 0 plugins : ~2.3sec
Startup on this PR with 8 plugins : ~2.3sec

I've only have SSD so there is no huge gab on my side. (Tested on Debian 11, don't have other system on hand sorry :/)

As always, I am not sure theses changes are really relevant nor if it is a good approach to try to reduce the startup time. I hope you could give me a feedback on this when you got time :D

@Eugeny
Copy link
Owner

Eugeny commented Jun 4, 2023

I've tested it and it improves my startup time from 2.7s to 2.1s, great work!

@Clem-Fern
Copy link
Contributor Author

Good to hear that !

@Clem-Fern Clem-Fern marked this pull request as ready for review June 4, 2023 19:40
@Clem-Fern
Copy link
Contributor Author

Well, I took another look in it to be sure I had done everything I could. But I think we're good for this time.

I've just added a new commit to fix a mistake I've made in the placement of the call of the progress bar.

@Eugeny
Copy link
Owner

Eugeny commented Jun 6, 2023

Perfect 👌

@Eugeny Eugeny merged commit 3146668 into Eugeny:master Jun 6, 2023
10 checks passed
@Issues-translate-bot
Copy link
Collaborator

The translator bot has detected that this issue body's language is not English, and has translated it automatically.


Perfect 👌

Clem-Fern added a commit to Clem-Fern/tabby that referenced this pull request Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants