Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Sync scorer data in the background #1013

Closed
wants to merge 1 commit into from

Conversation

benthecarman
Copy link
Collaborator

@benthecarman benthecarman commented Feb 6, 2024

Changes to sync scorer in the background rather than upfront, this made the startup ~500ms faster for me. This will still read the scorer on start up so we will still have a scorer up until it is synced.

#1016

@benthecarman benthecarman force-pushed the background-scorer-sync branch from c3a3c05 to c7a3e12 Compare February 6, 2024 16:20
Comment on lines -581 to -585
// If we are stopped, don't sync
if nm.stop.load(Ordering::Relaxed) {
return;
}

Copy link
Collaborator Author

@benthecarman benthecarman Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this check because we just do it again immediately once we enter the loop anyways

@benthecarman benthecarman deleted the background-scorer-sync branch February 7, 2024 12:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant