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

repository: Add a File Resource cache to ResourceBuilder #5372

Merged
merged 4 commits into from Oct 10, 2022

Commits on Sep 26, 2022

  1. m2e: Add a toString method override for debugging

    Signed-off-by: BJ Hargrave <bj@hargrave.dev>
    bjhargrave committed Sep 26, 2022
    Copy the full SHA
    a40d7ba View commit details
    Browse the repository at this point in the history
  2. resource: Add addResource method to ResourceBuilder

    Signed-off-by: BJ Hargrave <bj@hargrave.dev>
    bjhargrave committed Sep 26, 2022
    Copy the full SHA
    4533cdf View commit details
    Browse the repository at this point in the history
  3. deferred value: Memoize value to ensure at-most-once supplier call

    Since we are using deferred values to defer expensive operations, we
    don't want concurrent threads all performing the expensive operation.
    So we memoize the result of the operation to ensure at-most-once.
    
    Signed-off-by: BJ Hargrave <bj@hargrave.dev>
    bjhargrave committed Sep 26, 2022
    Copy the full SHA
    e140700 View commit details
    Browse the repository at this point in the history
  4. resource: Add a File Resource cache to ResourceBuilder

    The cache reduces the need to process files to Resource objects,
    including SHA-256 computation, for unchanged files.
    
    Fixes bndtools#5367
    
    Signed-off-by: BJ Hargrave <bj@hargrave.dev>
    bjhargrave committed Sep 26, 2022
    Copy the full SHA
    7b42679 View commit details
    Browse the repository at this point in the history