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

Remove an extra Deployment preload during after_join #1618

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

joshk
Copy link
Collaborator

@joshk joshk commented Oct 28, 2024

  • Preload the deployment, along with its firmware and archive, at the start of after_join
  • Preload all the required bits again in Deployments.set_deployment, and only use :force for the cases where the deployment id is updated.
  • This approach saves 100ms during after_join, which is over 15% of the total time.

@joshk joshk force-pushed the reduce-deployments-re-and-preloading branch from 72e5370 to f6eba9d Compare October 29, 2024 00:56
- Preload the deployment, along with its firmware and archive, at the start of `after_join`
- Preload all the required bits again in `Deployments.set_deployment`
- And only use `:force` if the deployment has changed.
- This approach saves 100ms during `after_join`, which is over 15% of the total time.
@joshk joshk force-pushed the reduce-deployments-re-and-preloading branch from f6eba9d to 52866f1 Compare October 29, 2024 01:40
@joshk joshk merged commit e7aeaf9 into main Oct 29, 2024
2 checks passed
@joshk joshk deleted the reduce-deployments-re-and-preloading branch October 29, 2024 02:05
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