WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
26175
[GTK] Download progress notification should be throttled, for the benefit of download managers
https://bugs.webkit.org/show_bug.cgi?id=26175
Summary
[GTK] Download progress notification should be throttled, for the benefit of ...
Gustavo Noronha (kov)
Reported
2009-06-03 15:32:11 PDT
This means less notifications for changes on the "progress" property. Someone who really wants to get all notifications can still connect to the "current-size" property.
Attachments
Throttle download speed.
(2.73 KB, patch)
2009-06-03 17:04 PDT
,
Gustavo Noronha (kov)
xan.lopez
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gustavo Noronha (kov)
Comment 1
2009-06-03 17:04:26 PDT
Created
attachment 30932
[details]
Throttle download speed. WebKit/gtk/ChangeLog | 16 ++++++++++++++++ WebKit/gtk/webkit/webkitdownload.cpp | 26 ++++++++++++++++++++++---- 2 files changed, 38 insertions(+), 4 deletions(-)
Xan Lopez
Comment 2
2009-06-06 01:51:10 PDT
Comment on
attachment 30932
[details]
Throttle download speed. Looks good to me. I wonder if current-size should be throttled too, in case it reports changes more often than needed (and uses too much CPU in doing so).
Gustavo Noronha (kov)
Comment 3
2009-06-06 18:43:15 PDT
Landed as
r44485
. About throttling current-size, my original patch did that, but the high CPU usage we experienced was not caused by the signal emissions (notice we already have signal emissions, and many function calls on that code path), but by the download manager updating the UI based on the emissions. I decided to not propose throttling the emissions of current-size and total-size, because then those properties will work for whoever wants to follow the progress more closely, while download managers can keep using the convenience property without having to do throttling themselves. Thoughts on that?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug