• 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: Pierre Bernard <email@hidden>
  • Date: Tue, 11 Apr 2006 15:01:14 +0200

I call it as a reaction to a user selecting a file or a directory. I list its siblings.

The list may be very long. I for one always have many items in the trash. When I hit that I am in for 10-20 seconds of beachball.

You may see this method in action in the Apple provided sample code: SimpleBrowser. You will see that it is way slower to browse the file system than the Finder is.

Pierre


On Tuesday, April 11, 2006, at 02:49PM, 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?
>
>Is the method really slow, or are you just calling it a lot? Are you
>calling it for one directory, or several? How many files are you
>enumerating over?
>
>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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
      • From: Rosyna <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>)

  • Prev by Date: A flash is causing problems for WebView, and the PC equivalent!
  • Next by Date: Re: A flash is causing problems for WebView, and the PC equivalent!
  • Previous by thread: Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
  • Next by thread: Re: SLOW -[NSFileManager directoryContentsAtPath:matchingExtension:options:keepExtension:]
  • Index(es):
    • Date
    • Thread