• 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: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads


  • Subject: Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
  • From: Rob Petrovec via Cocoa-dev <email@hidden>
  • Date: Thu, 23 Apr 2020 13:18:38 -0600


> On Apr 23, 2020, at 9:10 AM, Allan Odgaard via Cocoa-dev
> <email@hidden> wrote:
>
> On 23 Apr 2020, at 21:15, Rob Petrovec wrote:
>
>> If what you say is correct then everyone would be seeing a delay since most
>> people don’t have blazing fast internet connections.  I do not think this is
>> the normal behavior.
>
> Please try run this in a terminal and report the times:
>
>    rm -f /tmp/test.sh && echo $'#!/bin/sh\necho hello' > /tmp/test.sh &&
> chmod a+x /tmp/test.sh && time /tmp/test.sh && time /tmp/test.sh
>
> For this particular issue, it appears the lookup is cached by inode, so only
> first run should take > 50ms, where second one would be < 5ms.
>
> Then maybe also try it with Apple’s Network Link Conditioner and set it to
> simulate lousy internet, and try it also with WiFi disabled.
>
> I have seen the issue on multiple systems, so I do not think this is limited
> to my system, but more data would be great.
        I get a 1 second time for the first run and then a much quicker time
for the second.  I did some sampling and the longer time due to is Apple’s
check for malware on first run of a process.  This is a known, documented and
advertised behavior.  It is a one time cost and only effects applications, not
regular files.  For a developer though, yeah you get the cost after ever
rebuild.  So I don’t think this test is analogous to your initial issue of a
delay opening a file every time.



>> Sending an email to a developer mailing list doesn’t count.  Just sayin’...
>
> My email was to ask for help, i.e. whether others have seen this issue, can
> reproduce, have any idea what could cause this, etc.
>
> Of course I am aware that this is not a place to report bugs to Apple…
        So did you file a bug?  Would you mind posting the bug number?  Thanks.

—Rob

_______________________________________________

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: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
      • From: Allan Odgaard via Cocoa-dev <email@hidden>
References: 
 >Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads (From: Allan Odgaard via Cocoa-dev <email@hidden>)
 >Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads (From: "David M. Cotter via Cocoa-dev" <email@hidden>)
 >Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads (From: Allan Odgaard via Cocoa-dev <email@hidden>)
 >Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads (From: Allan Odgaard via Cocoa-dev <email@hidden>)
 >Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads (From: Rob Petrovec via Cocoa-dev <email@hidden>)
 >Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads (From: Allan Odgaard via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
  • Next by Date: Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
  • Previous by thread: Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
  • Next by thread: Re: Performance issue on macOS 10.15 obtaining display name for ~/Desktop, ~/Documents, and ~/Downloads
  • Index(es):
    • Date
    • Thread