Re: Retrieving the EXIF date/time from 250k images
Re: Retrieving the EXIF date/time from 250k images
- Subject: Re: Retrieving the EXIF date/time from 250k images
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Mon, 15 Aug 2022 11:51:06 +0200
> I noticed you release the fileProps but didn’t release the image, but I don’t
> know if that’s one of those details you left out for clarity.
Good point, and sorry for the confusion.
Yes, I do release the image.
> Also, depending on some factors like mutability, while the initWithString
> call with a CFStringRef might essentially be a no-op, you can just do the
> typecast on the dateref and pass it directly into dateFromString.
Thanks, that should work.
A detail I left out in-between: whitespace trimming.
Or, does anyone know if dateFromString will handle trailing/leading whitespaces
gracefully?
>
> One thing I’d suggest is to do the work for each image asynchronously on a
> background queue and have that block (essentially all of your for-loop code)
> report its completion by some asynchronous way like posting a notification on
> the original queue
Yes, I will try to do that, in particular, to let the user know about the
progress.
G.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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