Re: Losing my memory - a caching problem?
Re: Losing my memory - a caching problem?
- Subject: Re: Losing my memory - a caching problem?
- From: Stuart Rogers <email@hidden>
- Date: Wed, 18 Aug 2010 11:45:40 +0100
On 18 Aug 2010, at 01:26, Shawn Erickson wrote:
>
> ... however if your application loads
> file data (aka image data in your case) only once or it is unlikely
> your application will load the same file data again in the reasonable
> near future then you should look at disabling file caching of the file
> data you load.
>
> Review...
>
> http://developer.apple.com/mac/library/documentation/Performance/Conceptual/FileSystem/Articles/FilePerformance.html#//apple_ref/doc/uid/20001987-99732
>
> I don't think "kCGImageSourceShouldCache" affects caching at the file
> system cache level, it only enables/disables cacheing of decoded image
> data (aka raw pixels instead of source jpeg data). To avoid file
> caching you may have to load file data in a different way...
Yes, it did occur to me that I was locking the stable door after the horse
had bolted. Thanks for the pointer - I think disabling file caching might be
an approach worth pursuing (although the man page for fctrl isn't yet
making much sense to me).
> I would consider asking this question on the quartz developer list.
Will do, but I think I'll play with Instruments and file caching first.
Stuart
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden