[Pidgin] #8218: Pidgin hangs for few seconds when opening a conversation window

Pidgin trac at pidgin.im
Sun Jan 25 10:07:15 EST 2009


#8218: Pidgin hangs for few seconds when opening a conversation window
--------------------+-------------------------------------------------------
 Reporter:  el.il   |        Owner:              
     Type:  defect  |       Status:  new         
Milestone:          |    Component:  pidgin (gtk)
  Version:  2.5.4   |   Resolution:              
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by anoftc):

 Replying to [comment:6 Merkaba]:
 > I've managed to trace it to the History plugin in my case.

 Confirmed. If I disable the history plugin, then the conversation window
 pops up instantly after double clicking on some entry in the buddy list.
 When I close the conversation window, re-enable the History plugin, and
 then double click again on the same nick, then there's the mentioned
 delay, and the length of the delay depends on the number of files in the
 nick's log directory...

 But this is partly a pidgin-independent issue: the history plugin opens a
 directory with many small files. Getting the file list itself is quick,
 but getting data from those many small files takes time (thats why opening
 the directory is slow with TotalCommander...) ...

 I am not pro in programming, but in pidgin/plugins/history.c there's the
 historize() function that calls purple_log_get_logs() from log.c . This
 function loops through the loggers, then calls logger->list(type, name,
 account). This eventually calls purple_log_common_lister() ... And this is
 where I lost track :) I cannot identify exactly where the problem might be
 originating from, because what I see is simply a g_dir_open() and
 g_dir_read_name(), which (to my knowledge) should be quick, even with many
 files in a directory...

 Hope that helps.

 However, the problem for me and Merkaba might be different than for el.il
 ...

-- 
Ticket URL: <http://developer.pidgin.im/ticket/8218#comment:13>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list