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

Buffer downloads in memory not on disk #6746

Merged

Conversation

illicitonion
Copy link
Contributor

@illicitonion illicitonion commented Nov 8, 2018

No description provided.

Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@@ -100,6 +101,7 @@ def create_scheduler(rules, validate=True, native=None):
native,
FileSystemProjectTree(os.getcwd()),
'./.pants.d',
safe_mkdtemp(),
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Is this a good default? Or do we want to default to the usual/global directory unless it's been overridden?

@illicitonion illicitonion changed the title Url fetch improvements Buffer downloads in memory not on disk Nov 12, 2018
@illicitonion illicitonion merged commit 7ed40b2 into pantsbuild:master Nov 12, 2018
@illicitonion illicitonion deleted the dwagnerhall/v2/urlfetch-cache branch November 12, 2018 15:06
}).to_boxed()
}).and_then(move |(actual_digest, file_name, tempdir)| {

let hasher = hashing::WriterHasher::new(SizeLimiter {
Copy link
Contributor

Choose a reason for hiding this comment

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

You found an instance where I miss the Java anonymous classes to implement interfaces like this. That said, I don't disagree with this code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants