[KPhotoAlbum] Strange performance anomaly

Robert L Krawitz rlk at alum.mit.edu
Sat Jul 15 22:56:00 CEST 2006


I'm trying to understand why startup is taking as long as it is, on
two machines.  I'm seeing results I'd more or less expect for loading
the database, but on one machine (the server in my basement) I'm
seeing the bulk of the rest of the time taking place in create icon
view inside the browser widget, while on my laptop I'm seeing a lot of
time (and a lot more of it!) in setCentralWidget in Window.cpp.  In
both cases the X server is running on my laptop.

(Oh, and also notice that loading the settings data takes .5 second on
my laptop, and almost no time on my server.)

This looks like deep Qt/KDE voodoo.  Any thoughts?

On my server:

  kdWarning() << "  create icon view at " << timer.totalTime() << endl;
    _iconView = new QIconView( _stack, "_iconView" );
  kdWarning() << "  add icon view to stack at " << timer.totalTime() << endl;
    _stack->addWidget( _iconView );

kphotoalbum: WARNING: Loading database at 3.95952e-06
kphotoalbum: WARNING: Loading main window at 3.87423
kphotoalbum: WARNING: Get settings data at 3.87504
kphotoalbum: WARNING: Got settings data at 3.87511
kphotoalbum: WARNING: setCentralWidget at 3.87527
kphotoalbum: WARNING: create widget stack at 3.8756
kphotoalbum: WARNING: create date bar at 3.87582
kphotoalbum: WARNING: create frame at 3.87651
kphotoalbum: WARNING: create browser at 3.87666
kphotoalbum: WARNING: Starting browser widget at 3.87676
kphotoalbum: WARNING:   create widget stack at 3.87681
kphotoalbum: WARNING:   create list view at 3.87698
kphotoalbum: WARNING:   create icon view at 3.87797
kphotoalbum: WARNING:   add icon view to stack at 5.37355
kphotoalbum: WARNING:   create list view factory at 5.37375
kphotoalbum: WARNING:   create icon view factory at 5.3738
kphotoalbum: WARNING:   start single shot at 5.37443
kphotoalbum: WARNING:   end single shot at 5.37467
kphotoalbum: WARNING: created browser at 5.37473
kphotoalbum: WARNING: create thumbnail view at 5.37483
kphotoalbum: WARNING: setup menu bar at 5.38025
kphotoalbum: WARNING: setup search bar at 5.40397
kphotoalbum: WARNING: setup status bar at 5.40736
kphotoalbum: WARNING: setup indicator at 5.40865
kphotoalbum: WARNING: setup partial image counter at 5.43661
kphotoalbum: WARNING: setup total image counter at 5.43702
kphotoalbum: WARNING: setup auto save timer at 5.43723
kphotoalbum: WARNING: count images at 5.43738
kphotoalbum: WARNING: welcome at 5.43787
kphotoalbum: WARNING: thumbnail selection changed at 5.43802
kphotoalbum: WARNING: thumbnail selection done changed at 5.43816

On my laptop:

  kdWarning() << "setCentralWidget at " << timer.totalTime() << endl;
    setCentralWidget( top );

  kdWarning() << "create widget stack at " << timer.totalTime() << endl;

kphotoalbum: WARNING: Loading database at 5.94684e-06
kphotoalbum: WARNING: Loading main window at 6.68946
kphotoalbum: WARNING: Get settings data at 7.30006
kphotoalbum: WARNING: Got settings data at 7.30126
kphotoalbum: WARNING: setCentralWidget at 7.30199
kphotoalbum: WARNING: create widget stack at 13.6408
kphotoalbum: WARNING: create date bar at 13.6418
kphotoalbum: WARNING: create frame at 13.6441
kphotoalbum: WARNING: create browser at 13.6449
kphotoalbum: WARNING: Starting browser widget at 13.6455
kphotoalbum: WARNING:   create widget stack at 13.6459
kphotoalbum: WARNING:   create list view at 13.6466
kphotoalbum: WARNING:   create icon view at 13.6501
kphotoalbum: WARNING:   add icon view to stack at 13.6528
kphotoalbum: WARNING:   create list view factory at 13.6535
kphotoalbum: WARNING:   create icon view factory at 13.654
kphotoalbum: WARNING:   start single shot at 13.6552
kphotoalbum: WARNING:   end single shot at 13.6562
kphotoalbum: WARNING: created browser at 13.6567
kphotoalbum: WARNING: create thumbnail view at 13.6572
kphotoalbum: WARNING: setup menu bar at 13.6631
kphotoalbum: WARNING: setup search bar at 13.7101
kphotoalbum: WARNING: setup status bar at 13.7177
kphotoalbum: WARNING: setup indicator at 13.7295
kphotoalbum: WARNING: setup partial image counter at 13.7846
kphotoalbum: WARNING: setup total image counter at 13.7859
kphotoalbum: WARNING: setup auto save timer at 13.7871
kphotoalbum: WARNING: count images at 13.7882
kphotoalbum: WARNING: welcome at 13.7901
kphotoalbum: WARNING: thumbnail selection changed at 13.7909
kphotoalbum: WARNING: thumbnail selection done changed at 13.7916



More information about the KPhotoAlbum mailing list