The preference files are read heavily at startup but aren't, as a whole, used regular...
commit09511e821efbb1bc600b5455bd8f20b6e2b914dd
authorEvan Schoenberg <evan@adiumx.com>
Mon, 7 Jan 2008 20:50:46 +0000 (7 20:50 +0000)
committerEvan Schoenberg <evan@adiumx.com>
Mon, 7 Jan 2008 20:50:46 +0000 (7 20:50 +0000)
tree3132bed867ee61a52bc992206e6ba099b7635666
parent0be45188a69188726df0f21cee7020f0559f860c
The preference files are read heavily at startup but aren't, as a whole, used regularly after that.  When an object's preferences are used, we often use many of its settings in rapid succession as each relevant piece of information is read and used.

There's no reason to keep all that data in memory permanently.  After 30 seconds of disuse for a given cache key (which for global preferences means for a given group and for object-specific preferences means all preferences for that object), we now remove it from our in-memory cache.  It'll be re-read from disk when needed later.

git-svn-id: svn://svn.adiumx.com/adium/trunk@22176 1c916fce-81e2-0310-a464-8ca513f45935
Source/AIPreferenceController.m