[Pidgin] #9694: Protocol icons constantly read from disk

Pidgin trac at pidgin.im
Thu Jul 16 04:31:05 EDT 2009


#9694: Protocol icons constantly read from disk
--------------------+-------------------------------------------------------
Reporter:  nomeata  |        Type:  defect      
  Status:  new      |   Component:  pidgin (gtk)
 Version:  2.5.8    |    Keywords:              
--------------------+-------------------------------------------------------
 When strace’ing pidgin while checking #2027, I noticed that it very
 frequently opens and read the protocol icon files:

 {{{
 open("/usr/share/pixmaps/pidgin/protocols/16/icq.png", O_RDONLY) = 27
 read(27,
 "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377"...,
 4096) = 966
 read(27, "", 4096)                      = 0
 read(27,
 "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377"...,
 4096) = 966
 open("/usr/share/pixmaps/pidgin/protocols/16/icq.png", O_RDONLY) = 27
 read(27,
 "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377"...,
 4096) = 966
 read(27, "", 4096)                      = 0
 read(27,
 "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377"...,
 4096) = 966
 open("/usr/share/pixmaps/pidgin/protocols/16/icq.png", O_RDONLY) = 27
 read(27,
 "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377"...,
 4096) = 966
 read(27, "", 4096)                      = 0
 read(27,
 "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377"...,
 4096) = 966
 open("/usr/share/pixmaps/pidgin/protocols/16/icq.png", O_RDONLY) = 27
 read(27,
 "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377"...,
 4096) = 966
 read(27, "", 4096)                      = 0
 read(27,
 "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\20\0\0\0\20\10\6\0\0\0\37\363\377"...,
 4096) = 966
 }}}

 Not that it will do much harm, as the system will keep these files in
 cache, but it would still make sense to read them only once and then use
 the same pixmap to draw all the icons.

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


More information about the Tracker mailing list