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

Sync process optimizations #5219

Merged
merged 2 commits into from
Sep 4, 2023
Merged

Commits on Aug 29, 2023

  1. Skip computing working set when possible

    Computing the working set involves running few git commands, including git diff, it can be skipped if the "Expand Sync to Working Set" option is disabled.
    
    The working set will be computed on each `collectProjectState` call, given that this method is triggered three times per sync operation, disabling unnecessary working set computations can reduce the sync times roughly the amount of time taken by 3 git diff runs.
    idanakav committed Aug 29, 2023
    Configuration menu
    Copy the full SHA
    9ed6ebb View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2023

  1. Cache blaze info during sync

    Currently, BlazeInfo will be computed 5 times during incremental sync, this commit introduces logic to cache it and re-use the computed value during incremental syncs.
    
    `BlazeInfoProvider` was introduced in order to avoid changing `BlazeInfoRunner` and keep its responsibility to solely execute the info command.
    
    Logic is guarded by `blaze.info.provider.enabled` which is disabled by default.
    idanakav committed Sep 2, 2023
    Configuration menu
    Copy the full SHA
    c12b09d View commit details
    Browse the repository at this point in the history