Opened 13 years ago

Closed 13 years ago

#136 closed enhancement (fixed)

reduce imports required for basic functions - speedup and will reduce logging

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 0.12
Component: Global Keywords:
Cc:

Description

Some commands barely use any features, yet they need to import tons of stuff. This makes them slow to start and produces lots of unnecessary debug messages to be printed.

Examples:

  • away/back: should not care about pygtk, icons, etc..
  • "--help" should not need to load pygst (which causes its own warning logging: ** Message: pygobject_register_sinkfunc is deprecated (GstObject))
  • winswitch_open should be fast and nimble

Change History (3)

comment:1 Changed 13 years ago by Antoine Martin

Owner: changed from Antoine Martin to Antoine Martin
Status: newaccepted
  • away/back solved by r3513: split net stuff from string stuff so we don't need to import icons, etc.

comment:2 Changed 13 years ago by Antoine Martin

"--help" vs pygst solved in r3519: import sound stuff only when used and use skip_detection=True for generating help text.

comment:3 Changed 13 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

mime_open (previously known as winswitch_open) solved in r3520

Note: See TracTickets for help on using tickets.