• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]


  • Subject: Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 11 Apr 2006 13:33:27 +0100

I don't know what you're using this for, but NSFileManager does also offer its own enumerator for directories: enumeratorAtPath

For a large directory, this might prove to be more efficient.

Mike.

On 11 Apr 2006, at 12:42PM, Pierre Bernard wrote:

Hi!

My line of code is
NSEnumerator *subNodePaths = [[[NSFileManager defaultManager] directoryContentsAtPath: [self absolutePath]] objectEnumerator];


The method however shows up with the longer signature in the SpinControl trace.

Pierre


On Tuesday, April 11, 2006, at 11:28AM, j o a r <email@hidden> wrote:


On 11 apr 2006, at 10.01, Pierre Bernard wrote:

How come -[NSFileManager
directoryContentsAtPath:matchingExtension:options:keepExtension:]
is so slooooow?

Where did you find that method? Is it a method in NSFileManager that I simply don't know about, or one you implemented yourself? If it's the latter, perhaps you should show us the implementation?

j o a r






---
Spinning WebObjects or cooking up Cocoa in Switzerland?
Let me know: http://homepage.mac.com/I_love_my/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:] (From: Pierre Bernard <email@hidden>)
 >Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:] (From: j o a r <email@hidden>)
 >Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:] (From: Pierre Bernard <email@hidden>)

  • Prev by Date: Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
  • Next by Date: Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
  • Previous by thread: Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
  • Next by thread: Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
  • Index(es):
    • Date
    • Thread