Re: cleanup of shared precompiled headers?
Re: cleanup of shared precompiled headers?
- Subject: Re: cleanup of shared precompiled headers?
- From: Mark Bessey <email@hidden>
- Date: Mon, 20 Jun 2005 11:08:10 -0700
On Jun 20, 2005, at 3:01 AM, Jens Miltner wrote: Given Xcode 2.1's new concept of shared precompiled headers in /Library/Caches/com.apple.Xcode.<uid>/: Is this being cleaned up now and then?
Yes. When you re-start Xcode (actually, the first time you open a project after restarting), the precompiled header cache is scanned for files older than a certain age, which are then deleted. The Expert Preferences Notes (look in Xcode's Help menu) explain how you can use two expert preferences to modify this behavior:
- BuildSystemCacheSizeInMegabytes
- The desired size of the shared precompiled-header file cache in megabytes. Xcode checks the total size of the cache every time it is launched, and if it is more than the size specified by this default, Xcode tries to prune the cache back to the desired size by removing the oldest precompiled-header files first (though it will never remove a cache entry that is younger than the number of hours specified by the BuildSystemCacheMinimumRemovalAgeInHours default). A value of 0 indicates an unlimited cache size. By default the shared PCH file cache size is set to 1024 megabytes.
- BuildSystemCacheMinimumRemovalAgeInHours
- The minimum age (in hours) for candidates for removal while the build system cache is pruned. The default value is 24, meaning that no cache file that has been used within the last twenty four hours will ever be removed. See the description of the BuildSystemCacheSizeInMegabytes default for more information.
So, the default settings allow about a gigabyte of precompiled headers to accumulate, and Xcode doesn't delete any precompiled headers that have been used in the last day.
-Mark
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden