Skip to content

Is possible an option to cache also build of own code? #37

Closed

Description

@jhg

The idea is an option default to false to improve builds as Rust compiler will have cache and only need to build the changes.

Activity

  1. Swatinem commented on Oct 15, 2021

    @Swatinem
    Owner

    The idea is that the tradeoff to only cache dependencies is better because:

    • it would only cache the first invocation when it generates a new cache key.
    • with time the code will diverge more, causing longer builds.
    • incremental needs a lot of disk space, and thus cache space and time to fetch & extract, lowering the benefits.
  2. jhg commented on Oct 16, 2021

    @jhg
    Author

    Thanks for the comment @Swatinem. About the first two points, I was thinking in incremental and default to false, but I guess that could be complex to do. And interesting the third point.

  3. added a commit that references this issue on Nov 22, 2022
  4. added a commit that references this issue on Dec 22, 2022
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions