Open Bug 1646265 Opened 5 years ago Updated 5 years ago

download speed very slow if blob size greater than 1MB

Categories

(Core :: DOM: Core & HTML, defect)

77 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: yrj0103, Unassigned)

Details

Attachments

(4 files)

Attached image sample.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

Steps to reproduce:

  1. Create a blob from an array of Uint8Array (length of array is greater than 100000)
  2. Use URL.createObjectURL(blob) to create URL
  3. Use HTMLAnchorElement to download the URL

see sample.png

Actual results:

Download speed is very slow after 1MB

Expected results:

Complete download immediately

However, if I concat those Uint8Array to one Uint8Array before creating Blob, it would complete immediately as I expected.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core
Component: Graphics: WebRender → DOM: Core & HTML

Reporter, could you perhaps attach a minimal testcase using 'Attach new file'?

Flags: needinfo?(yrj0103)
Attached file download.js
Flags: needinfo?(yrj0103)

I see a bit of a wait, but maybe I'm using a computer that's too fast.

Severity: -- → S4
Attached image 2020-06-18 170523.png

Download speed is less than 1kB/s

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: