[Pidgin] #13947: Ability to create 1000+ accounts

Pidgin trac at pidgin.im
Tue May 3 15:22:42 EDT 2011


#13947: Ability to create 1000+ accounts
-----------------+----------------------------------------------------------
Reporter:  gugu  |        Type:  patch            
  Status:  new   |   Component:  libpurple        
 Version:        |    Keywords:  accounts spectrum
-----------------+----------------------------------------------------------
 Currently all accounts stored in plain list.

 Spectrum needs to support up to 50000 active accounts. In this case
 purple_accounts_find and purple_accounts_new are extremely slow, because
 they iterate over the list and make a lot of CPU usage in a loop.

 I added accounts_hash variable in addition to accounts with type
 GHashTable.

 Now purple_accounts_find can work quickly for any number of accounts

-- 
Ticket URL: <http://developer.pidgin.im/ticket/13947>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list