Re: some questions about creating image thumbnails
Re: some questions about creating image thumbnails
- Subject: Re: some questions about creating image thumbnails
- From: Nathan Vander Wilt <email@hidden>
- Date: Wed, 9 Apr 2008 09:11:19 -0700
On Apr 9, 2008, at 8:32 AM, Jesse Grosjean wrote:
1. If I don't care about on disk size is NSTIFFCompressionNone a
fast way to write? (assuming that compression would take more time).
Or maybe compression will actually save me time since the disk write
will be faster?
I am by no means a performance expert (is anyone besides Shark?) but I
suspect that nowadays you would much rather do a bit of extra work in
CPU/memory than extra hauling from the hard drive. You'd want to
confirm this yourself in a small prototype that kinda mimics the
behaviour of your application, except many times over. Watch out for
both NSImage and disk caching, though. If you oversimplify your code
by (say) loading the same image over and over, your prototype might
not end up mimicking your app correctly.
Anyway, I haven't experimented with this much myself, so I should let
someone else give you a real answer!
-natevw
_______________________________________________
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