Re: Creating a series of sequenced files
Re: Creating a series of sequenced files
- Subject: Re: Creating a series of sequenced files
- From: Quincey Morris <email@hidden>
- Date: Sat, 16 Apr 2016 15:40:54 -0700
- Feedback-id: 167118m:167118agrif8a:167118sQeEngraHv:SMTPCORP
On Apr 16, 2016, at 15:29 , Carl Hoefs <email@hidden> wrote:
>
> I have potentially n different ongoing sequences, so it seems like this approach could end up hitting the filesystem really hard
One enumeration per candidate directory shouldn’t be inefficient. That’s the order of magnitude of what the Finder does to open a window.
If necessary, you can do a single directory enumeration hierarchically from the common ancestor directory of all the files, skipping subdirectories that don’t contain possible sequences. That’s the minimum setup you can do, if the per-enumeration setup is too expensive.
_______________________________________________
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