Skip to content

Support compiling and fetching from cache in parallel #31

Open

Description

@luser

If we implement #30 to let local developers pull from the S3 cache, performance is going to be variable depending on network timings. It'd be nice as a future optimization if we could run a compilation in parallel with a cache fetch, and use whichever result returns first. We might want this to have a heuristic where if it finds that some percentage of the time one strategy wins that it will prefer that strategy. Like if someone is building with a decent CPU and slow network, we might want to limit the number of concurrent fetches from S3 and just run local builds for any other compile requests that come in.

Activity

  1. luser commented on Dec 2, 2016

    @luser
    ContributorAuthor

    As a follow-up to the last sentence in my previous comment, it strikes me that sccache could provide a net speedup even with a fast CPU and slower network access if we ran the build with -jN where N is greater than the number of local CPU cores, but limited sccache such that it would only run enough concurrent compile jobs to saturate the number of CPU cores, allowing others to fetch cache hits in the background. That way someone could saturate their local CPU building some objects locally while simultaneously fetching cache hits for other objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions