Re: Concurrent tasks are getting hung up
Re: Concurrent tasks are getting hung up
- Subject: Re: Concurrent tasks are getting hung up
- From: Steve Mills <email@hidden>
- Date: Sun, 12 Oct 2014 22:38:30 -0500
On Oct 12, 2014, at 18:18:48, Jim Crate <email@hidden> wrote:
> In one app I’m creating up to 600 or so block operations at once (processing a list of files), it looks like it takes less than a couple tenths of a second so it doesn’t seem like it should be noticeable unless you are creating many thousands of operations, or invocation operations are extraordinarily slow to create.
Yes, my operations process image files, so they can be quite lengthy. It worked great when I used a small test suite, but as soon as I tried it on one of my large folders (16k+ files), kablooey.
> Keep in mind you can add operations to your queue from inside an operation executing on that queue so it would likely be trivial to change your code to generate the operations in a block operation.
That's pretty much what I'm doing now.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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