Closed Bug 83395 Opened 23 years ago Closed 9 years ago

[meta] Unix Mozilla (gtk port) makes too many slow X11 calls

Categories

(Core :: XUL, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dr, Unassigned)

References

Details

(Keywords: helpwanted, perf, topperf)

Mozilla using the gtk toolkit makes too many slow X11 calls. This contributes to
a very large UI slowdown when mozilla is run remotely, and noticeably sluggish
performance even when run locally on reasonable speed target machines.

Pavlov did some work in the past to reduce unnecessary X server roundtrips (see
bug 16710, for example) but there is still a decent amount of work to be done
here. This is a meta bug to track these issues.

Setting [ platform: All, OS: Linux ] as a close-enough approximation to "X
platforms."
Setting dependencies (incl. a bunch of old, closed bugs owned by Pavlov).
Status: NEW → ASSIGNED
Depends on: 16710, 19119, 33298, 77051, 83024
Keywords: nsCatFood, perf, topperf
Priority: -- → P3
Target Milestone: --- → mozilla1.0
Adding helpwanted keyword. Although that probably applies more to the bugs we're
tracking...
Keywords: helpwanted
Here's one patch that I can probably make to get rid of one XSync() call and
replace it with an XFlush().  I think this is safe.

Index: gdksuperwin.c
===================================================================
RCS file: /cvsroot/mozilla/widget/src/gtksuperwin/gdksuperwin.c,v
retrieving revision 1.15
diff -u -r1.15 gdksuperwin.c
--- gdksuperwin.c       2000/07/28 04:32:22     1.15
+++ gdksuperwin.c       2001/05/31 18:10:54
@@ -432,7 +432,7 @@
   }
 
   /* sync so we get the windows moved now */
-  XSync(GDK_DISPLAY(), False);
+  XFlush(GDK_DISPLAY());
 }
 
 void  
Ignore my last comment.  It just looks the same as what I suggested there.
Good tool for counting x-trafic is xmon. It shows call counts and can even
dump every request and response.

Xmon is available for ftp from:
ftp://ftp.x.org/contrib/devel_tools/

To run say in one window: ./xmonui | ./xmond
and on another: setenv DISPLAY localhost:1; ./mozilla
Tomi: Thank you *very* much for the pointer -- I'll have a look at that.
Depends on: 89085
Depends on: 93999
Blocks: 91351
May God have mercy on us all. The 212 bug spam-o-rama is Now!
QA Contact: aegis → jrgm
[spam] dr@netscape.com's bugs subject to redistribution by chofmann. R!
Assignee: dr → chofmann
Status: ASSIGNED → NEW
Priority: P3 → --
Target Milestone: mozilla1.0 → ---
*** Bug 94661 has been marked as a duplicate of this bug. ***
Shaver says this goes to blizzard, as a reward for his patch.
Assignee: chofmann → blizzard
Keywords: mozilla1.0+
Is this actually a bug in GTK, not in Mozilla.
http://bugzilla.gnome.org/show_bug.cgi?id=94535

I tested some QT applications and some GTK applications over
remote X and the UI of the GTK applications was very sluggigh.

Does anyone remember whether the Mozilla's QT version was
faster than GTK (over remote X)?
Blocks: 475713
Depends on: 846816
No longer depends on: 846816
Assignee: blizzard → nobody
QA Contact: jrgmorrison
According to comment #12, this issue is an upstream bug and it has been RESOLVED/WONTFIX.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.