[Xcb] [Bug 4232] xlsclients much too slow over network

Peter Harris git at peter.is-a-geek.org
Wed Sep 2 16:50:41 PDT 2009


On Wed, Sep 2, 2009 at 6:55 PM, Alan Coopersmith wrote:
> Peter Harris wrote:
>>  - Most of those round-trips were spent in XmuClientWindow, and most of
>> the rewrite was open-coding XmuClientWindow so it could be run in parallel.
>
> Since there were enough callers in the old world to make an
> XmuClientWindow useful, does that suggest this should become
> a shared utility function in something like xcb-util?

Interesting question.

XmuClientWindow itself could be rewritten using xlib-xcb for a modest
speed gain[1] in all those old apps without having to touch any of
them. But it wouldn't be anywhere near the speedup seen in xlsclients,
since it wouldn't run all the toplevel windows in parallel.

What is the typical usage of XmuClientWindow? An xcb-util function
that returns a list of all the client windows on a screen could be
useful, if that was a common pattern.

Peter Harris

[1] O(tree_depth) vs O(tree_width*tree_depth)


More information about the Xcb mailing list