id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,mlocked 3506,Reduce memory usage by not duplicating button images in memory,stuartm,stuartm,"The attached 'proof of concept' patch significantly reduces memory usage of mythfrontend with some themes by not loading the same watermarks and icons into memory multiple times. Right now if two menu entries share the same watermark or icon, then that image is loaded each time. The patch instead maintains a list of loaded images and pointers allowing a single image in memory to be shared. Another benefit should be that startup is marginally faster because we no longer go back to the disk each time. Example memory savings with blootube-wide (mileage my vary) {{{ Normal - Without Patch ---------------------- VIRT RES SHR S %CPU %MEM TIME+ COMMAND 593m 302m 33m S 0.0 30.1 0:52.66 mythfrontend With Patch ---------- VIRT RES SHR S %CPU %MEM TIME+ COMMAND 435m 143m 33m S 0.0 14.3 0:04.54 mythfrontend }}}",enhancement,closed,major,0.21,mythtv,head,medium,fixed,,,0