Bug 820944 - JavaScript uses excessive amount of CPU power
Summary: JavaScript uses excessive amount of CPU power
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: Performance
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 4.2-1
Assignee: Simon Green
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: BZ42
TreeView+ depends on / blocked
 
Reported: 2012-05-11 11:50 UTC by Mikolaj Izdebski
Modified: 2018-12-09 06:29 UTC (History)
3 users (show)

Fixed In Version: 4.2.1-0.rc3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-14 06:46:38 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 828646 0 unspecified CLOSED Browser freezes for a while and productform.js - 'script is busy or have stoped' error in search form 2021-02-22 00:41:40 UTC

Internal Links: 828646

Description Mikolaj Izdebski 2012-05-11 11:50:16 UTC
Description of problem:
During advanced search BZ hangs web browser until JavaScript is aborted.

How reproducible:
Always.

Steps to Reproduce:
1. Go to Search -> Advanced Search
2. Select Classification: Fedora
3. Select Product: Fedora
  
Actual results:
After selecting produce Fedora: the browser appears to hang up. It eats 100% CPU. After some time (like half a minute), a message box appears saying:

  A script on this page may be busy, or it may have stopped responding. You can
  stop the script now, or you can continue to see if the script will complete.

  Script: https://partner-bugzilla.redhat.com/js/productform.js:300

Expected results:


Additional info:

I'm using RHEL 6.2
firefox-3.6.24-3.el6_1.x86_64

Comment 2 Simon Green 2012-05-14 06:48:19 UTC
Now uses less power, but still quite a lot when displaying Fedora components (there is a whole lot of them). I'll see how this goes before making more changes.

  -- simon

Comment 3 Christoph Wickert 2012-06-08 12:54:42 UTC
Still very bad performance. Even though I have a fast machine (Intel i5 @ 2.40GHz, 4 GB RAM) it hangs every time.


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