Open Bug 924091 Opened 8 years ago Updated 2 years ago

Heavy CPU load during download


(Toolkit :: Downloads API, defect)

Not set




(Reporter: mayhemer, Unassigned)


(Blocks 1 open bug)


(Keywords: perf)


(1 file)

Attached file
I was downloading on my mac (10.7.5, to this date nightly,, new cache enabled).

There was a significant (but not 100%) load of the CPU.  UI was janking.

I'm attaching a profile captured by web tools profiler.
I think that bug 917012 might help a little bit, in that it avoids duplicate computations, even though it seems from the profile that you hadn't the Library window open while downloading, so the gain will be minor.

We are planning to simplify the user interface code, this might also help. If the load is still significant with bug 917012 applied, feel free to attach a new profile and leave this bug open while we figure out if we can improve something there. Progress updates are already throttled, I'm not sure there is much more we can do.

You may also try to put an early "return" in the "_setBytes" function of "DownloadCore.jsm" and see if the overall CPU load is due to progress updates or there is something else that contributes the CPU load in the process, maybe background file I/O.
Blocks: jsdownloads
Depends on: 1562032
You need to log in before you can comment on or make changes to this bug.