Skip to content

Switch to blob().text() for faster fetch parsing - #80

Closed
Ulternae wants to merge 1 commit into
cloudflare:mainfrom
Ulternae:fast-fetch
Closed

Switch to blob().text() for faster fetch parsing#80
Ulternae wants to merge 1 commit into
cloudflare:mainfrom
Ulternae:fast-fetch

Conversation

@Ulternae

@Ulternae Ulternae commented Apr 4, 2026

Copy link
Copy Markdown

This PR improves download speed measurement accuracy by replacing response.text() with response.blob().text().

response.text() was introducing significant JS-side backpressure, which throttled the effective TCP throughput and caused download measurements to be much lower than expected. Using response.blob().text() avoids that issue and produces more accurate results.

Original PR : dmeremianina

Semver label: patch

It looks like there are no available semver labels, or I don’t have permission to add them. Could a maintainer please add the patch label? This PR is a non-breaking performance improvement.

@github-actions

github-actions Bot commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Please set a semver versioning label of either major, minor, or patch on this pull request.

@Ulternae
Ulternae marked this pull request as draft April 4, 2026 19:10
@Ulternae
Ulternae marked this pull request as ready for review April 4, 2026 19:10
@Ulternae
Ulternae marked this pull request as draft April 4, 2026 19:11
@Ulternae
Ulternae marked this pull request as ready for review April 4, 2026 19:13
@andre-j3sus

Copy link
Copy Markdown
Collaborator

Will close this PR, since I'm reviewing #76 which has the same fix.

@andre-j3sus andre-j3sus closed this Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants