bugkazehakase - Bugs: bug #4526, New Windows take a long time to...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #4526: New Windows take a long time to load

Submitted by:  Jim Apple <japple>
Submitted on:  Sat 15 Oct 2005 06:36:10 AM UTC  
Votes:  1  
 
Category: NoneSeverity: 4 - Important
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Tue 25 Oct 2005 04:46:18 PM UTC, comment #3:

This can be fixed by changing the line

kz_sidebar_set_current(sidebar, sidebar_entries[0]->label);

in src/kz-sidebar.c

in the function kz_sidebar_new

the '0' should arguably be a '1', since copying the Tab List is much cheaper than copying the bookmarks: If there are a lot of bookmarks, this takes forever, but the tab list will always be empty for a new window.

Jim Apple <japple>
Sat 15 Oct 2005 11:41:26 PM UTC, comment #2:

Iyt's because I have a lot of bookmarks. Each one is added to the sidebar view via this backtrace:

kz_window_new
kz_window_init - a lot of time, a lot of (Gecko:21001): Gtk-CRITICAL **: gtk_entry_set_text: assertion `text != NULL' failed
at least one in kz->actions = kz_actions_create_group(kz, accel_group);
kz_window_sync_ui_level - 7, a few seconds for each
kz_sidebar_new
kz_sidebar_set_current ("Bookmarks")
kz_sidebar_change_content - a lot of time - widget = entry->create(sidebar)
kz_bookmarks_sidebar_new
kz_bookmarks_sidebar_init
kz_bookmarks_view_set_root_folder
insert_bookmark

This should be done lazily, so I don't pay the price for each new window

Jim Apple <japple>
Sat 15 Oct 2005 10:28:37 PM UTC, comment #1:

The problem seems to be in the line

KzWindow *kz = g_object_new(KZ_TYPE_WINDOW, "type", GTK_WINDOW_TOPLEVEL,NULL);

in kz_window_new in kz-window.c

Jim Apple <japple>
Sat 15 Oct 2005 06:36:10 AM UTC, original submission:

New Windows take a long time to load

Jim Apple <japple>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by japple (Voted in favor of this item)
  • -unavailable- added by japple (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 15 Oct 2005 10:28:37 PM UTCjappleCarbon-Copy-=>Added japple
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup