News for hackers. Stuff that matters.
Re:MacOS Catalina: Slow by Design? by unown on Friday May 22, 2020 @12:43PM (#23274033)
As someone living in China, this is my result when I connected to my VPN (this is my normal life, thus I can visit sites like HN):

> Hello

> /tmp/test.sh 0.00s user 0.00s system 0% cpu 5.746 total

> Hello

> /tmp/test.sh 0.00s user 0.00s system 79% cpu 0.006 total

And even if I didn't connect to my VPN:

> Hello

> /tmp/test2.sh 0.00s user 0.00s system 0% cpu 1.936 total

> Hello

> /tmp/test2.sh 0.00s user 0.00s system 78% cpu 0.005 total

That's just ridiculous and unbearable.

Apple should provide a way to disable this notarization thing, and the user should still be able to enable SIP while disabling it.

additional information:

- macOS version: 10.15.4

- terminal: iTerm2 3.3.9

- didn't install any "security" software

Re:MacOS Catalina: Slow by Design? by neonate on Friday May 22, 2020 @02:04PM (#23275071)
Is HN blocked in China?
Re:MacOS Catalina: Slow by Design? by unown on Friday May 22, 2020 @02:28PM (#23275314)
HN has been blocked in China since about 9 months ago.

https://news.ycombinator.com/item?id=20676573

Re:MacOS Catalina: Slow by Design? by wux on Friday May 22, 2020 @02:32PM (#23275359)
I'm curious what your results would be with the stock Terminal. Do you have the settings that others have talked about under "Security > Privacy > Developer Tools" with Terminal.app listed? If so, and the results are better with Terminal, then it'd be interesting to see if the issue is fixed when you add iTerm2 to the list of exempted apps as well.
Re:MacOS Catalina: Slow by Design? by unown on Friday May 22, 2020 @03:10PM (#23275759)
I have tried what you suggested. Granting "Developer Tools" access definitely FIXED THIS ISSUE for the specific application.

Here is the new result (I only run once for each case):

    ╒══════════╤═════════════╤═══════════════════════════╕
    │          │             │ +"Developer Tools" access │
    ╞══════════╪═════════════╪═══════════════════════════╡
    │ terminal │ 1.448/0.004 │ 0.016/0.004               │
    ├──────────┼─────────────┼───────────────────────────┤
    │ iTerm2   │ 1.240/0.006 │ 0.024/0.007               │
    ╘══════════╧═════════════╧═══════════════════════════╛
`1.448/0.004` means the first time it is `1.448 total`, and the second time it is `0.004 total`.

(It seems I have "good" VPN/internet connection condition at this time)

Re:MacOS Catalina: Slow by Design? by airstrike on Friday May 22, 2020 @10:41PM (#23279369)
Upvoted for ASCII table alone
Re:MacOS Catalina: Slow by Design? by ccmcarey on Friday May 22, 2020 @01:04PM (#23274326)
It doesn't work when there's no network connection, wonder if it would be possible to filter out and automatically block notarization traffic, or if it's all encrypted with cert pinning to prevent this type of MITM+filter.
Re:MacOS Catalina: Slow by Design? by Karliss on Saturday May 23, 2020 @01:34AM (#23280211)
Dropping packets when there is an otherwise working connection could potentially make the delay even worse depending on timeout or retry strategy used by Apple code. I assume that in the fast case without network connection it checks the network status flag and doesn't try to do any network connection at all.
Re:MacOS Catalina: Slow by Design? by ttsda on Friday May 22, 2020 @01:15PM (#23274478)
I'm still on 10.14, but I guess it will show up on Little Snitch. Unless they bundle it with some other more essential traffic.