Closed Bug 389873 Opened 19 years ago Closed 19 years ago

GTK accessibility make rendering of large file list pages slow, busy freezing all UI

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: kairo, Assigned: ginnchen+exoracle)

References

()

Details

(Keywords: hang, perf, regression)

Attachments

(1 file, 3 obsolete files)

When in recent trunk builds accessibility started working again, I noticed that
Oops, sorry for submitting too early - somehow I pressed Enter in the wrong place of the HTML form :( I repeat: When in recent trunk builds accessibility started working again, I noticed that loading of large file lists like on http://download.opensuse.org/distribution/10.2/repo/oss/suse/i586/ became very slow, enough for freezing all windows and tabs, making no UI in them paint any more, but still using almost 100% of one one of CPU cores. This happens with my self-built SeaMonkey trunk, but also with Firefox nightlies, but only in recent builds that show "GTK Accessibility Module initialized" messages on console. When I |export GNOME_ACCESSIBILITY=0| before launching the builds, they are suddenly very snappy again, not showing any sign of this slowdown.
Oh, and it seems that once the page is in the cache (including bfcache probably), it doesn't block that much, sometimes even loads quite fast. going up one directory and then loading e.g. the ppc or x86_64 directories that are parallel to the i586 so, so that we have an uncached big page, slows down to a crawl again though, and switching to a different Window of the same process and back a few times ends up in making the process almos unusable, without any UI rendering.
Confirmed. That's pretty harsh. :-(
Assignee: aaronleventhal → ginn.chen
Looking at the jprof log in attachment 274412 [details], you can see that most of the time is spent under nsDocAccessible::ContentAppended and nsDocAccessible::FireTextChangedEventOnDOMNodeInserted, making this a regression from bug 371394.
Blocks: 371394
Severity: normal → major
Keywords: hang, perf, regression
I think it's a dupe of bug 378969 or depends on that bug.
Attached patch patch (obsolete) — — Splinter Review
do nothing while loading
Attachment #274580 - Flags: review?(aaronleventhal)
(In reply to comment #7) > Created an attachment (id=274580) [details] > patch > > do nothing while loading > Ginn, I would suggest to add the check into each FireTextChangedEventXXX() method.
Attached patch patch v2 (obsolete) — — Splinter Review
Like this? I think we don't want InvalidateCacheSubtree, either.
Attachment #274583 - Flags: review?(surkov.alexander)
Attached patch patch v2.5 (obsolete) — — Splinter Review
Attachment #274580 - Attachment is obsolete: true
Attachment #274583 - Attachment is obsolete: true
Attachment #274585 - Flags: review?(aaronleventhal)
Attachment #274580 - Flags: review?(aaronleventhal)
Attachment #274583 - Flags: review?(surkov.alexander)
Comment on attachment 274585 [details] [diff] [review] patch v2.5 Comments in IRC -- still need to call InvalidateSubtree().
Attachment #274585 - Flags: review?(aaronleventhal) → review-
Attached patch patch v3 — — Splinter Review
Attachment #274585 - Attachment is obsolete: true
Attachment #274602 - Flags: review?(aaronleventhal)
Comment on attachment 274602 [details] [diff] [review] patch v3 Don't forget tree is closed still :)
Attachment #274602 - Flags: review?(aaronleventhal) → review+
Comment on attachment 274602 [details] [diff] [review] patch v3 hugh performance regression, low risk
Attachment #274602 - Flags: approval1.9?
Attachment #274602 - Flags: approval1.9? → approval1.9+
Checking in src/base/nsDocAccessible.cpp; /cvsroot/mozilla/accessible/src/base/nsDocAccessible.cpp,v <-- nsDocAccessible.cpp new revision: 1.167; previous revision: 1.166 done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: