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

feat(fetch-http-handler): improve performance, replace FileReader with Blob.arrayBuffer() #1179

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

richarddd
Copy link
Contributor

Description of changes:
Improve performance of collecting blob body by usingarrayBuffer()method.

If one or more of the packages in the /packages directory has been modified, be sure yarn changeset add has been run and its output has
been committed and included in this pull request. See CONTRIBUTING.md.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@richarddd richarddd requested review from a team as code owners March 4, 2024 15:19
@richarddd richarddd requested a review from syall March 4, 2024 15:19
@richarddd richarddd changed the title Improve blob reader Improve blob reader performance Mar 4, 2024
@kuhe
Copy link
Contributor

kuhe commented Jun 17, 2024

https://caniuse.com/mdn-api_blob_arraybuffer checks out, and for Node.js if we have Blob (v18) global then it has .arrayBuffer() on it.

@kuhe kuhe force-pushed the improve-blob-reader branch 2 times, most recently from 43ee9f5 to 2c5ee19 Compare October 17, 2024 15:10
@kuhe kuhe changed the title Improve blob reader performance feat(fetch-http-handler): improve performance, replace FileReader with Blob.arrayBuffer() Oct 17, 2024
@kuhe kuhe requested review from kuhe and milesziemer and removed request for syall October 17, 2024 15:12
@kuhe kuhe merged commit c257049 into smithy-lang:main Oct 18, 2024
10 of 11 checks passed
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.

5 participants