#2347 closed enhancement (fixed)
faster client startup
Reported by: | Antoine Martin | Owned by: | Antoine Martin |
---|---|---|---|
Priority: | major | Milestone: | 3.0 |
Component: | client | Version: | 2.5.x |
Keywords: | Cc: | bachbaum24@… |
Change History (5)
comment:1 Changed 20 months ago by
Status: | new → assigned |
---|
comment:2 Changed 20 months ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Updates:
- r23062 makes it possible to skip loading the menu icons
- r23063 debug logging reveals that there is a delay whilst loading the
xpra.png
icon (importing pillow, etc) - can't really avoid that - 30ms delay before
get_vrefresh
in https://github.com/mviereck/x11docker/files/3345452/xpraclient.log - r23067 faster linux distro indentification
- r23068 delay loading of X11 and GTK bindings
That's enough I think.
comment:4 Changed 20 months ago by
Cc: | bachbaum24@… added |
---|
comment:5 Changed 6 weeks ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2347
Note: See
TracTickets for help on using
tickets.
Added some debug logging in r23053 + r23054 + r23055.
Places where we spend most of the startup time:
opengl=probe
takes 1s on my system - can easily take more with other GPUs / drivers, hence the need for #2345import xpra.platform.gui
takes 120ms (not sure why yet)import xpra.client.UIXpraClient
takes ~40ms (not bad considering how much that imports)get_platform_info
takes 40ms - this could be done from a separate threadsetup_menu
: 120ms (mostly loading icons from disk - not much we can do? is it worth using pillow to load from a separate thread?)Start to finish only takes 2 seconds, more than half of which is the opengl probing!
With
--no-speaker --no-microphone --opengl=no --encodings=rgb --video-decoders=none --csc-modules=none --tray=no
, my python3 client starts in just 0.5s.