xpra icon
Bug tracker and wiki

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#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@…

Description

Same as #2341 but for the client.

We already have:

Change History (4)

comment:1 Changed 3 months ago by Antoine Martin

Status: newassigned

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 #2345
  • import 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 thread
  • importing the picture and video codecs: 70ms - could be done in parallel with connecting to the server
  • opengl re-tests despite the initial probe (only once now: r23056) - difficult to fix
  • setup_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.

comment:2 Changed 3 months ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

Updates:

That's enough I think.

comment:3 Changed 3 months ago by Antoine Martin

See also: #2349 cache audio query

comment:4 Changed 3 months ago by mviereck

Cc: bachbaum24@… added
Note: See TracTickets for help on using tickets.