From: Felipe C. <fel...@gm...> - 2004-12-16 03:26:06
|
On Wed, 15 Dec 2004 17:57:26 -0600, Tim Ringenbach <om...@ho...> wrote: > Evan Schoenberg wrote: > > > What exactly does the cache in ~/.gaim/icons do? I currently have > > 56.6 MB of files in there (8,435 files, significantly more buddies > > than I have on my list). > > > > It collects buddy icons. Due to past (and possibly present, not sure) > bugs in Gaim, buddy icons were sometimes leaked. Also if two people use > the same buddy icon, you get the file twice. > > If you've ever logged into Trepia on Gaim, you'll have gotten a lot of > them from there too. > > I'd like to see this cache recoded, and so would shx. Something where > each file is stored only once by using hashes, and where a database is > kept and old unreferenced files are garbage collected. And also where > unreferenced files can get re-referenced. > > Also, this database will probably get used for custom smileys. And I > think someone is working on those. Indeed, I would like something like that. Maybe inside .gaim/icons we can have a folder for each one of the protocols, and then inside that, each file named as it's hash. I don't know how does each prpl does buddy icons, but I think each one of them uses some kind of hash, at least if it does some kind of caching. Also considering the custom smileys maybe the folder can be named as .gaim/cache and there the prpl can store whatever files it caches. Maybe each prpl can have a different directory structure inside its cache dir or something. -- Felipe Contreras |