[comp.windows.x] Performance Delta of X11 vs X10 When Creating Many Windows

DAN@YKTVMV.BITNET (01/05/89)

My customer has an application which creates a top level window,
several sub-windows of this, and in one sub-window, close to a
thousand sub-windows.  The program was written for X 10.4, where
it performed reasonably well (a few seconds to map all the windows.)

They are now re-writing the application for X 11 (still using XLIB,
no toolkits or widgets) and it now takes minutes to map the same
windows!  When they changed the application to make all windows
children of the root window, performance improves considerably.
This is not really acceptable, as the windows belong in a hierarchy,
and making them children of root interferes with a lot of things
(moving, re-sizing, etc.)

Does anyone have a clue why this might be happening, or any suggestions
on what to do about it?  Thanks in advance.

Regards,
W. Brennan Carley

Submitted by: Walt Daniels

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (01/06/89)

    it now takes minutes to map the same windows!

    Does anyone have a clue why this might be happening, or any suggestions
    on what to do about it?

I wouldn't be surprised if the problem was in the server.  I remember having
similar problems back in X9-10 days, until I did considerable hacking on the
server window operations.  There could well be similar problems in X11.  I
know of at least one company that has done some very significant work in the
area of speeding up the window ops in the X11 server, but they haven't given
any of the code or ideas back to us :-(.  But, without actually seeing and
profiling the particular application, it's hard to know anything for sure.