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

2020-05-22 Thread Allan Odgaard via Cocoa-dev
On 22 May 2020, at 21:59, Aandi Inston wrote: 1. I wonder if your tests are in a non-English language system. No, running on a non-localized system, and the evidence is overwhelming that this is about SIP / AMFI (based on inspecting the stack trace, which clearly show communication between t

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

2020-05-22 Thread Rob Petrovec via Cocoa-dev
> On May 22, 2020, at 8:42 AM, Allan Odgaard via Cocoa-dev > 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 norma

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

2020-05-22 Thread Aandi Inston via Cocoa-dev
Your report is interesting. I have been following it but may have missed a part of the discussion, so here is one thought I had. You say that getting the display name of ~/Documents may result in a delay. This is localizable, so that in Portugal (for example) the display name is Documentos. So here

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

2020-05-22 Thread Allan Odgaard via Cocoa-dev
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. I think it is specific to your system, otherwise there would be TONS of p

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

2020-04-24 Thread Gary L. Wade via Cocoa-dev
Also, did you take advantage of one of your free tech support incidents? -- Gary L. Wade http://www.garywade.com/ > On Apr 24, 2020, at 8:26 AM, Gary L. Wade via Cocoa-dev > wrote: > > That’s a very narrow view of reality, which I know to be far broader. > > What’s the feedback number? > -- >

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

2020-04-24 Thread Gary L. Wade via Cocoa-dev
That’s a very narrow view of reality, which I know to be far broader. What’s the feedback number? -- Gary > On Apr 24, 2020, at 8:01 AM, Allan Odgaard via Cocoa-dev > wrote: > > That said, I *have* filed a report about this, but I still seek more > information about the issue, which I had hop

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

2020-04-24 Thread Allan Odgaard via Cocoa-dev
On 24 Apr 2020, at 21:33, Gary L. Wade wrote: Here’s two web sites that should help you get the answer you want. Try one or both: https://feedbackassistant.apple.com/welcome https://www.apple.com/jobs/us/ You don’t get answers from filing bug reports with Apple, at best, the issue gets clos

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

2020-04-24 Thread Gary L. Wade via Cocoa-dev
Here’s two web sites that should help you get the answer you want. Try one or both: https://feedbackassistant.apple.com/welcome https://www.apple.com/jobs/us/ -- Gary ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

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

2020-04-24 Thread Sandor Szatmari via Cocoa-dev
Allan, > On Apr 24, 2020, at 00:14, Allan Odgaard via Cocoa-dev > wrote: > > On 24 Apr 2020, at 9:51, Gary L. Wade wrote: > >> Have you tried a speed check with just iCloud turned off but internet on? > > I have tried with iCloud disabled, internet disabled, and SIP disabled. Have you tried

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

2020-04-23 Thread Allan Odgaard via Cocoa-dev
On 24 Apr 2020, at 11:49, Saagar Jha wrote: GateKeeper is basically Safari adding a quarantine flag […] Nit: not just Safari; other applications do this to at their discretion when appropriate (for example, if they too download files from the internet). Quarantine is just one part of GateKeepe

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

2020-04-23 Thread Saagar Jha via Cocoa-dev
Saagar Jha > On Apr 23, 2020, at 21:26, Allan Odgaard via Cocoa-dev > wrote: > > On 24 Apr 2020, at 9:57, Rob Petrovec wrote: > >>> Also weird, why would it phone home for a shell script which has neither >>> been stapled nor even code-signed? >> I think you answered the question just then…

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

2020-04-23 Thread Allan Odgaard via Cocoa-dev
On 24 Apr 2020, at 9:57, Rob Petrovec wrote: Also weird, why would it phone home for a shell script which has neither been stapled nor even code-signed? I think you answered the question just then… a "shell script which has neither been stapled nor even code-signed”. Google XProtect & Gateke

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

2020-04-23 Thread Allan Odgaard via Cocoa-dev
On 24 Apr 2020, at 9:51, Gary L. Wade wrote: Have you tried a speed check with just iCloud turned off but internet on? I have tried with iCloud disabled, internet disabled, and SIP disabled. Only the latter two removes the delay. Also, the issue happens for ~/Downloads which is not an iCloud

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

2020-04-23 Thread Marco S Hyman via Cocoa-dev
>> Also weird, why would it phone home for a shell script which has neither >> been stapled nor even code-signed? > I think you answered the question just then… a "shell script which has > neither been stapled nor even code-signed”. Google XProtect & Gatekeeper. 1) The executable part of

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

2020-04-23 Thread Rob Petrovec via Cocoa-dev
> On Apr 23, 2020, at 8:35 PM, Allan Odgaard via Cocoa-dev > wrote: > > On 24 Apr 2020, at 2:28, Gabriel Zachmann via Cocoa-dev wrote: > >>> I believe that is why you are supposed to staple notarization tickets to >>> your apps. >> Then, why would it "phone home" in case there is an internet

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

2020-04-23 Thread Gary L. Wade via Cocoa-dev
Have you tried a speed check with just iCloud turned off but internet on? -- Gary ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)l

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

2020-04-23 Thread Allan Odgaard via Cocoa-dev
On 24 Apr 2020, at 2:28, Gabriel Zachmann via Cocoa-dev wrote: I believe that is why you are supposed to staple notarization tickets to your apps. Then, why would it "phone home" in case there is an internet connection? Also weird, why would it phone home for a shell script which has neither

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

2020-04-23 Thread Rob Petrovec via Cocoa-dev
> On Apr 23, 2020, at 7:30 PM, Allan Odgaard via Cocoa-dev > wrote: > > On 24 Apr 2020, at 2:18, Rob Petrovec wrote: > >> 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 o

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

2020-04-23 Thread Allan Odgaard via Cocoa-dev
On 24 Apr 2020, at 2:18, Rob Petrovec wrote: 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. I wo

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

2020-04-23 Thread Gabriel Zachmann via Cocoa-dev
> > I believe that is why you are supposed to staple notarization tickets to your > apps. > Then, why would it "phone home" in case there is an internet connection? Best regards, Gabriel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

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

2020-04-23 Thread Saagar Jha via Cocoa-dev
I believe that is why you are supposed to staple notarization tickets to your apps. Saagar Jha > On Apr 23, 2020, at 12:12, Gabriel Zachmann via Cocoa-dev > wrote: > >> >> It appears the problem is not with a local service, but that Apple >> actually ?phones home? when a program asks for di

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

2020-04-23 Thread Rob Petrovec via Cocoa-dev
> On Apr 23, 2020, at 9:10 AM, Allan Odgaard via Cocoa-dev > 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 norma

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

2020-04-23 Thread Gabriel Zachmann via Cocoa-dev
> > It appears the problem is not with a local service, but that Apple > actually ?phones home? when a program asks for display name. > > I don?t know if this is common knowledge, but with notarization, Apple > now validates executables on your system before they are executed, and > it does so

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

2020-04-23 Thread Allan Odgaard via Cocoa-dev
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/t

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

2020-04-23 Thread Rob Petrovec via Cocoa-dev
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. I think it is specific to your system, otherwise there would be TONS of people complaining about slowness. A couple seco

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

2020-04-22 Thread Allan Odgaard via Cocoa-dev
On 20 Apr 2020, at 0:11, Allan Odgaard via Cocoa-dev wrote: Unfortunately though I can’t figure out *what* the problem is; running `tccutil reset All` (and rebooting) did not fix it. It appears the problem is not with a local service, but that Apple actually “phones home” when a program asks

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

2020-04-19 Thread Gary L. Wade via Cocoa-dev
Regardless of whatever workaround you find, I would second Rob’s suggestion to go ahead and file a bug with a sysdiagnose and/or spindump along with a sample app that reproduces it. This isn’t expected behavior, and the teams at Apple are still working and would be very interested in seeing thi

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

2020-04-19 Thread Allan Odgaard via Cocoa-dev
On 20 Apr 2020, at 0:37, Rob Petrovec wrote: >> I think you are right about this being a permission / “sandbox” issue, because the 3 folders in question are all folders that macOS 10.15 now require special permission to read (even though in my case, I just request their display name). Yes, th

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

2020-04-19 Thread Rob Petrovec via Cocoa-dev
>> I think you are right about this being a permission / “sandbox” issue, >> because the 3 folders in question are all folders that macOS 10.15 now >> require special permission to read (even though in my case, I just request >> their display name). Yes, this is because of iCloud. Log o

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

2020-04-19 Thread Allan Odgaard via Cocoa-dev
On 19 Apr 2020, at 22:54, David M. Cotter wrote: i have discovered it may have to do with permissions / entitlements that have been granted the app by the user, and that resetting all perms to default will "fix" the problem I think you are right about this being a permission / “sandbox” issu

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

2020-04-19 Thread Rob Petrovec via Cocoa-dev
I assume you have iCloud enabled. If so, these three folders are ’special’. Try logging out of iCloud & rebooting and see if the problem persists. I would also recommend filing a bug with Apple and include a sysdiagnose taken while the problem was reproducing (sudo sysdiagnose). Or at least a

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

2020-04-19 Thread David M. Cotter via Cocoa-dev
this may be difficult for other to repro i have discovered it may have to do with permissions / entitlements that have been granted the app by the user, and that resetting all perms to default will "fix" the problem in the terminal, do this: > tccutil reset All i expect that after that, your de

Re: Performance issue

2010-08-27 Thread Shawn Erickson
On Fri, Aug 27, 2010 at 1:34 AM, Uli Kusterer wrote: > On 26.08.2010, at 20:37, Ken Thomases wrote: >> Shark and most of the instruments in Instruments are statistical samplers, >> not exact function-call measurement.  Also, Vijay already mentioned >> familiarity with Instruments. > >  I am sorr

Re: Performance issue

2010-08-27 Thread Uli Kusterer
On 26.08.2010, at 20:37, Ken Thomases wrote: > Shark and most of the instruments in Instruments are statistical samplers, > not exact function-call measurement. Also, Vijay already mentioned > familiarity with Instruments. I am sorry, my mistake. I must have read "instruments tool" as somethin

Re: Performance issue

2010-08-26 Thread Ken Thomases
On Aug 26, 2010, at 8:39 AM, Uli Kusterer wrote: > On Aug 26, 2010, at 12:48 PM, Vijayakumar_Thota wrote: >> I am working on the performance issues of an application. I am facing a >> difficulty in finding out how many times a method is called in different >> contexts. >> >> Suppose there is a

Re: Performance issue

2010-08-26 Thread Uli Kusterer
On Aug 26, 2010, at 12:48 PM, Vijayakumar_Thota wrote: > I am working on the performance issues of an application. I am facing a > difficulty in finding out how many times a method is called in different > contexts. > > Suppose there is a method called 'setItem'. I need the report which tells >

Re: [Performance issue] Resizing an alert sheet => blinks

2009-10-06 Thread Jens Alfke
On Oct 6, 2009, at 3:29 PM, Iceberg-Dev wrote: The contents. It's a bit as if there was a patchwork of rectangles and a random set of these rectangles would not be redrawn when the window size increases by 1 pixel and then another set for the following pixel. That sounds like a graphics

Re: [Performance issue] Resizing an alert sheet => blinks

2009-10-06 Thread Iceberg-Dev
On Oct 6, 2009, at 1:29 AM, Jens Alfke wrote: On Oct 5, 2009, at 3:12 PM, Iceberg-Dev wrote: Is it the intended behavior that resizing an Alert Sheet in Mac OS X 10.5.8 on a MacBook Pro produces a lot of blinking? I have a custom alert sheet that can be resized and when I resize it on a M

Re: [Performance issue] Resizing an alert sheet => blinks

2009-10-05 Thread Jens Alfke
On Oct 5, 2009, at 3:12 PM, Iceberg-Dev wrote: Is it the intended behavior that resizing an Alert Sheet in Mac OS X 10.5.8 on a MacBook Pro produces a lot of blinking? I have a custom alert sheet that can be resized and when I resize it on a MacBook Pro (either 9400 or 9600 GPU), the resize

Re: Performance Issue with Drawing PDFPages on NSView

2009-08-26 Thread John Calhoun
On Aug 26, 2009, at 4:20 AM, Naresh Kongara wrote: I'm drawing the pages from the pdf document onto an NSVIew. The fallowing method draws all the pages from the document in a View, this method will be called from the view's drawrect. Its taking much time when there are more than 40 pages a