Qball's Weblog

GMPC startup time

Tags gmpc 

Starting gmpc:

?View Code BASH
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
0.001684:main: Setting up locale
0.016553:main: Parsing command line options
0.016619:main: Initializing threading
0.016625:main: Gtk init
0.016629:main: EggSmClient
0.016669:main: Check version and create paths
0.017135:main: Opening config file: /home/qball/.config/gmpc/gmpc.cfg
0.017144:main: New version check
0.025156:main: Init easy command
0.025233:main: Init advanced search
0.025344:main: Setting up gmpc idle,signals and profiles
0.052666:main: Initializing metadata system
0.052676:main: Pixbuf cache create()
0.053026:main: Init stock icons
0.053035:main: Setting up mpd connection object
0.053056:main: Setting up mpd object signal system
0.053070:main: Initializing metadata watcher
0.056575:main: Metadata plugin changed check
0.156863:main: Creating playlist window
0.156871:main: Setup unique app to watch main window
0.156880:main: Setting up timers
0.159590:main: Setting up multimedia keys

Creating the playlist takes the longest time (100ms)

?View Code BASH
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 0.000007:create_playlist3: Setup dialog url hook
0.000034:create_playlist3: get path
0.000067:create_playlist3: create builder
0.041240:create_playlist3: Load builder file
0.041281:create_playlist3: Setup pl3_tree
0.041291:create_playlist3: thv_init
0.041498:create_playlist3: setup cat_tree
0.041532:create_playlist3: setup breadcrumb
0.053064:create_playlist3: Init category tree
0.053067:create_playlist3: Init progress bar
0.053495:create_playlist3: Init header
0.054885:create_playlist3: Init fav icon
0.055089:create_playlist3: Signal setup
0.055199:create_playlist3: connect signals
0.055204:create_playlist3: Select view
0.061751:create_playlist3: Setup metaimages
0.061755:create_playlist3: get settings
0.061755:create_playlist3: move window settings
0.061760:create_playlist3: resize window settings
0.061764:create_playlist3: set pane window settings
0.061764:create_playlist3: maximize pane window settings
0.098952:create_playlist3: Show window
0.099211:create_playlist3: zoom level
0.099212:create_playlist3: Restore state
0.099296:create_playlist3: Go menu
0.099527:create_playlist3: Update profiles
0.099539:create_playlist3: setup drag
0.099563:create_playlist3: setup pos notify
0.100057:create_playlist3: signal connn changed
0.100939:create_playlist3: Update status icon
0.100942:create_playlist3: Setup extra playlist

So what takes time? loading the GtkBuilder file and showing the widget. Shamefully little I can do about these.. (I cleaned up the GtkBuilder file a bit, helped but not enough)

(p.s. this is on a E8400 )