Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
- Subject: Re: [NSBitmapImageRep getBitmapDataPlanes] copying data?
- From: Quincey Morris <email@hidden>
- Date: Mon, 21 Feb 2011 09:10:18 -0800
On Feb 21, 2011, at 03:56, Jonathan Taylor wrote:
> I am looking at the performance of my code, and have found that rather a lot of time is spent in [NSBitmapImageRep getBitmapDataPlanes]. This is rather disappointing because I had assumed this was a 'trivial' way of getting a pointer to the actual data store itself in the case of raster data. Investigation using shark appears to confirm that the call is making a copy of the data(?). Can anyone shed any light on what is going on and whether I can do anything about it?
Assuming you're running on Snow Leopard, the relevant information is in this document:
http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html
under this heading (about 60% of the way through the document):
NSBitmapImageRep: CoreGraphics impedance matching and performance notes
I think you'll find the answer to the question of why the data is being copied in there.
_______________________________________________
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