• 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: TextEdit - Open Recent - slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextEdit - Open Recent - slow


  • Subject: Re: TextEdit - Open Recent - slow
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 07 Feb 2012 05:12:51 +0700

On 6 Feb 2012, at 23:44, Jens Alfke wrote:

> So, what does the sample look like during the hang? What method/function is the main thread spending all its time in?

The sample output is kind of large (>1111 lines, available on request) but here are some lines which might be interesting:

Sort by top of stack, same collapsed (when >= 5):
        __workq_kernreturn  (in libsystem_kernel.dylib)        7760
        kevent  (in libsystem_kernel.dylib)        2659
        __open  (in libsystem_kernel.dylib)        1806
        mach_msg_trap  (in libsystem_kernel.dylib)        797
        semaphore_wait_trap  (in libsystem_kernel.dylib)        12

The thread which has the long wait in __open contains:

1806 -[NSDocumentControllerOpenRecentMenuDelegate updateMenu:withEvent:withFlags:]
1805 -[NSDocumentController(NSInternal) _populateOpenRecentMenu:includingIcons:]
1800 +[NSDocumentController(NSInternal) _recentMenuItemTitlesFromLocationComponentChains:includingIcons:]
1800 -[NSFileLocationComponent iconAsAttributedString]
...
1788 __open  (in libsystem_kernel.dylib) + 10  [0x7fff8b1c9ad2]


The recents items look like:

file1
file2
...
someFile - folderA
someFile - folderB
...

Both folderA and folderB have their own icon (which is displayed in front of "folderA" and "folderB").

But other apps with the same two "someFile" show no delay.
Nor does my own debug-version of TextEdit.


Kind regards,

Gerriet.


_______________________________________________

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


  • Follow-Ups:
    • Re: TextEdit - Open Recent - slow
      • From: Jens Alfke <email@hidden>
References: 
 >Re: TextEdit - Open Recent - slow (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: TextEdit - Open Recent - slow (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: ical UI
  • Next by Date: Re: TextEdit - Open Recent - slow
  • Previous by thread: Re: TextEdit - Open Recent - slow
  • Next by thread: Re: TextEdit - Open Recent - slow
  • Index(es):
    • Date
    • Thread