GeezerVison is showing github.com — Storage: clean up write streams · Issue #400 · googleapis/google-cloud-node
Storage: clean up write streams #400Labels 🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged. DescriptionLooking at the file.createWritableStream, validation is intermixed with everything and some internal streams exist solely for validation purposes. We might want to consider having a fast-path for when validation: false which by-passes all this logic and extraneous streams. This should help with #397 when validation: false but I'll put it in Storage Future because for the default and recommended case, it probably won't help much. Reacted by Michael Prentice Activitystephenplusplus commented on Feb 19, 2015 👍, though not sure the added complexity this would likely introduce is worth the minimal memory savings. ryanseys commented on Feb 24, 2015 ContributorAuthor More actions I'm not sure of the overhead associated with creating streams in Node.JS but the author of the performance issue seems to suggest that it may play a role so this was an idea for reducing that. I'm with you, I don't think it will play a big difference but worth investigating. Plus createWriteStream is HUGE and might benefit from a cleanup. changed the title [-]Create fast-path for validation: false in file.createWritableStream[/-] [+]Storage: clean up write streams[/+] on Mar 31, 2015stephenplusplus commented on Mar 31, 2015 I'm going to look into simplifying the logic of our write stream implementation. stephenplusplus commented on Aug 31, 2015 Our streams have been cleaned up considerably in some recent PRs and refactors (#694, #820, #831). We now use modules to help us out, like gcs-resumable-upload & hash-stream-validation. We also found a cleaner way to use Request to make a multi-part upload. I think we can call this one resolved for now, and if we see room for improvements down the road, we'll be sure to jump. Reacted by Michael Prentice
MetadataMetadata🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged. DevelopmentNo branches or pull requestsIssue actions
|