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

Improve UI responsiveness during startup #21

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

stevenlei
Copy link
Contributor

Problem

The willSelect method in teaBASE.m was performing several heavy operations synchronously on the main thread, which could cause UI blocking during startup.

Solution

Moved heavy operations to background queues while ensuring UI updates happen on the main thread. The changes include:

  • Using dispatch_group to coordinate multiple async operations
  • Moving heavy operations (updateSSHStates, updateVersions, etc.) to background queues
  • Ensuring UI updates occur on the main thread
  • Initially disabling UI elements and enabling them as their data becomes available

Benefits

  • Improved UI responsiveness during startup

@mxcl mxcl merged commit 7de4caf into teaxyz:main Dec 16, 2024
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.

2 participants