User:MBoman/Slab

From openSUSE

Contents

Properties editor

Looking into the code to perhaps add a properties menu for easier configuration.

Image:Slab-Properties.jpg


Icon Size

Also looking at possibilities to be able to change the icon size in Slab/AB. There are 6 Icon Levels that can be used.

Below is the smallest (Note! It doesn't look very sexy as the current code was not designed to use different icon sizes. The icon should be much close to the text and the gap between the rows should be less as well).

Image:Slab-Small-Icons.png


And the largest

Image:Slab-Large-Icons.png


Dev&Profiling

  • Enhancement; Add Trash (with size of deleted items) to the Status headline, with option to right click and empty (Future; Able to schedule it to be emptied on age and available disk space?)
  • Enhancement; Performance when opening App Browser the first time
    • Profiling in progress...


mblxtv01:/usr/share/applications # find|wc -l
5060
** Message: Function appshelldata_new: 1 iterations for a total of 0 milliseconds (0 millisecond per iteration).
** Message: Function generate_categories: 1 iterations for a total of 13140 milliseconds (13140 millisecond per iteration).
** Message: Function generate_category: 9 iterations for a total of 8997 milliseconds (999 millisecond per iteration).
** Message: Function generate_launchers: 66 iterations for a total of 285 milliseconds (4 millisecond per iteration).
** Message: Function check_specific_apps_hack: 1643 iterations for a total of 2 milliseconds (0 millisecond per iteration).
** Message: Function insert_launcher_into_category: 1652 iterations for a total of 8680 milliseconds (5 millisecond per iteration).
** Message: Function application_tile_new_full: 1652 iterations for a total of 3853 milliseconds (2 millisecond per iteration).
** Message: Function load_desktop_item_from_unknown: 1652 iterations for a total of 227 milliseconds (0 millisecond per iteration).
** Message: Function application_tile_class_init: 1 iterations for a total of 0 milliseconds (0 millisecond per iteration).
** Message: Function application_tile_setup: 1652 iterations for a total of 3144 milliseconds (1 millisecond per iteration).
** Message: Function themed_icon_new: 1652 iterations for a total of 73 milliseconds (0 millisecond per iteration).
** Message: Function themed_icon_class_init: 1 iterations for a total of 0 milliseconds (0 millisecond per iteration).
** Message: Function themed_icon_init: 1652 iterations for a total of 2 milliseconds (0 millisecond per iteration).
** Message: Function themed_icon_set_property: 3304 iterations for a total of 4 milliseconds (0 millisecond per iteration).
** Message: Function themed_icon_show: 1652 iterations for a total of 179 milliseconds (0 millisecond per iteration).
** Message: Function get_desktop_item_startup_status: 1652 iterations for a total of 140 milliseconds (0 millisecond per iteration).
** Message: Function generate_new_apps: 1 iterations for a total of 89 milliseconds (89 millisecond per iteration).
** Message: Function layout_shell: 1 iterations for a total of 35 milliseconds (35 millisecond per iteration).
** Message: Function create_application_category_sections: 1 iterations for a total of 6 milliseconds (6 millisecond per iteration).
** Message: Function populate_application_category_sections: 1 iterations for a total of 21 milliseconds (21 millisecond per iteration).
** Message: Function populate_application_category_section: 10 iterations for a total of 17 milliseconds (1 millisecond per iteration).
** Message: Function create_groups_section: 1 iterations for a total of 0 milliseconds (0 millisecond per iteration).
** Message: Function populate_groups_section: 1 iterations for a total of 0 milliseconds (0 millisecond per iteration).
** Message: Function create_actions_section: 1 iterations for a total of 1 milliseconds (1 millisecond per iteration).
** Message: Function create_main_window: 1 iterations for a total of 39293 milliseconds (39293 millisecond per iteration).
** Message: Function show_shell: 1 iterations for a total of 39180 milliseconds (39180 millisecond per iteration).
** Message: Function themed_icon_style_set: 1652 iterations for a total of 21386 milliseconds (12 millisecond per iteration).

Ideas - Performance improvement

  • It currently takes ~.4 of a second to call this function
    • Save result from gmenu_tree_get_root_directory to binary cache to be used instead (This should be a fairly quick hack).
  • It currently takes ~2 seconds to populate AB and an additional ~1 second to actually display the window.
    • Load only a small amount of applications before opening the AB window. Once AB is visible, load the rest (This probably requires a lot of work).
  • Only add context menu when user right clicks on an application
    • Implemented (although not perfected code wise). Savings = .3 of a second. There is no delay at all when adding it "real-time" instead (less than a millisecond).
  • Note to self
    • Can we save time/memory by not storing the tooltip text for each app, but rather retrieve it *if* needed?
    • Can we make people aware of the right click thing by having a "Tip Of The Day" in the "System Area"??


Google Spreadsheet can be found here;

http://spreadsheets.google.com/ccc?key=py5IH1qd4bbaG6wOEkYPBSg&hl=en