Richard Laager spake unto us the following wisdom:
> I selected a 2 MB picture from a digital camera as my buddy icon, and I
> ended up with several copies of that in ~/.gaim/icons, including 2
> copies at full size.
> 1. Do we really want to end up with $(number of accounts) copies of a
> buddy icon, or would it be better to share them in some way? I realize
> this gets tricky with core/ui split.
No. In fact, fixing this has been on my TODO for some time. At one
point I calculated the number of unique buddy icons in .gaim/icons vs.
the total number of icons on several systems of mine, and the results
were not pretty.
We really should be storing those icons by some sort of hash (I
nominate a simple SHA-1) of their content, not a random number. We
could then reference-count them in the buddy list, and when the last
reference to an icon is removed, remove the icon. (Currently icons
are not collected well, if at all.)
This should not be affected by the core/ui split in any way.
Feel free to snipe this off my TODO. ;-)
The laws that forbid the carrying of arms are laws [that have no remedy
for evils]. They disarm only those who are neither inclined nor
determined to commit crimes.
-- Cesare Beccaria, "On Crimes and Punishments", 1764