Closed
Bug 763713
Opened 14 years ago
Closed 4 years ago
High CPU usage and slowdowns while typing into YouTube comment field
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: WonderCsabo, Unassigned)
References
Details
(Whiteboard: [js:p2][js:bumped:1] [platform-rel-Youtube])
Attachments
(1 file)
|
372.01 KB,
application/octet-stream
|
Details |
While typing into the comment field on YouTube, the CPU usage is going ridiculously high (20% w/ a quad core CPU). Other users experienced slowdowns, too, when performing this action. I investigated the issue a little and found out that a script is responsible for this: http://s.ytimg.com/yt/jsbin/www-core-vfld_ifp8.js
It's kinda big, but i hope someone can bisect it.
STR:
1. Open any YouTube video, and log in to YT.
2. Start typing into the comment field under the video, and
check out the CPU usage.
| Reporter | ||
Comment 1•14 years ago
|
||
I checked the script w/ Firebug. While typing into to text field:
Cd() : calls: 438 percentage: 35.24%
Ra() : calls: 115121 percentage: 27.24%
anonymous() : calls: 115121 percentage: 17.15% (La() ??)
Comment 2•14 years ago
|
||
I think I can reproduce this. On my machine, just watching the video, CPU usage is about 3-4%, and it goes up to 8% when I type (8-core, so it's still most of a core). In Chrome it's about 1% and goes up to 2% when typing.
Do you know if this is a regression?
Whiteboard: [js:p1:fx16]
I experienced this bug during several months in the past. Typing slowed down and Firefox became unresponsive (with the error message 'Not Responding') and failed to write my entire comment. If I disabled HWA, it was pretty normal, so I think it was an issue with HWA (maybe GPU driver issue or bug in FF that's now fixed).
| Reporter | ||
Comment 4•14 years ago
|
||
(In reply to David Mandelin from comment #2)
> Do you know if this is a regression?
I do not know, but i try to find out. Thanks for checking this bug! :)
(In reply to Loic from comment #3)
> and failed to write my entire comment. If I disabled HWA, it was pretty
> normal, so I think it was an issue with HWA (maybe GPU driver issue or bug
> in FF that's now fixed).
No, this is not a HWA issue. I tried disabling everything, and definitely the script is the culprit.
| Reporter | ||
Comment 5•14 years ago
|
||
Okay, i checked it. It's not a regression. I bisected w/ mozregression, and i can reproduce even in the 2007-05-01 Nightly... I did not go any further... :)
Comment 6•14 years ago
|
||
OK, it's not a regression then. Seems like more of a general perf issue, so I'm moving to that bucket, which is planned for a bit later.
Blocks: WebJSPerf
Whiteboard: [js:p1:fx16] → [js:p2][js:bumped:1]
| Assignee | ||
Updated•12 years ago
|
Assignee: general → nobody
Updated•10 years ago
|
platform-rel: --- → ?
Updated•10 years ago
|
Whiteboard: [js:p2][js:bumped:1] → [js:p2][js:bumped:1] [platform-rel-Youtube]
Updated•9 years ago
|
platform-rel: ? → ---
Comment 7•4 years ago
|
||
Doesnt repro anymore.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•