News for hackers. Stuff that matters.
Re:Magit 3.0 by darthrupert on Tuesday May 25, 2021 @10:43AM (#27277430)
Perhaps this is about MacOS vs Linux. I'm also suffering from slow emacs on mac, and no combination of flags seems to help.

Use case: open a yaml file with syntax highlightning, scroll it with the mouse. The latency should be as low as possible.

Re:Magit 3.0 by nvarsj on Tuesday May 25, 2021 @11:48AM (#27278373)
It's most likely a Mac thing. And is probably the main reason I gave up on OS X as a serious work OS, since I'm so dependent on Emacs (org-mode in particular). I hope it gets sorted one day. Apparently it has to do with certain system calls on OS X just being very slow.
Re:Magit 3.0 by dpbriggs on Tuesday May 25, 2021 @12:33PM (#27278973)
Emacs on MacOS was also laggy for me before I started using the native comp feature. It takes a while to compile but it's seriously one of the best QoL changes I've had in years.
Re:Magit 3.0 by pcr910303 on Tuesday May 25, 2021 @08:54PM (#27284803)
Does Emacs native-comp work outside X (i.e. works with the Cocoa port)? I thought it only worked through XQuartz b.c. gcc can’t parse the Objective-C required for the Cocoa port…

If the Cocoa port runs well, well that changes everything to me

Re:Magit 3.0 by rurban on Thursday May 27, 2021 @02:39PM (#27306518)
Yes, it does. I run my macOS nativecomp Emacs on it. Just the UI is not as good as on X. I have my mouse miles more than on X.
Re:Magit 3.0 by ryukafalz on Tuesday May 25, 2021 @11:18AM (#27277944)
This is my experience as well. I know it can be fast because emacs absolutely screams on my Linux machines, but it's super sluggish on the Mac I have to use for work.
Re:Magit 3.0 by taeric on Tuesday May 25, 2021 @10:51AM (#27277551)
Fwiw, I'm not seeing lag on my end doing the same. Can turn on magit blame and it still scrolls fine. :(

Opening a very large file?

Edit: I have found that if I don't reboot my Mac, the environment that a launcher emacs finds is sometimes off. Is it the same slow if you launch from a terminal versus the dock?

Re:Magit 3.0 by darthrupert on Tuesday May 25, 2021 @11:23AM (#27278037)
No, not very large.

I'm using Doom with pretty much default settings. Perhaps there's something heavy there.

Re:Magit 3.0 by taeric on Tuesday May 25, 2021 @11:39AM (#27278269)
I don't think anyone really wants to profile their editor. That said, if you have the cycles to spare, M-x profiler-start, scroll, M-x profiler-stop may have some obvious culprit.
Re:Magit 3.0 by chalst on Tuesday May 25, 2021 @03:07PM (#27281034)
I have a very underpowered Macos machine (2010 Mac mini) which faces latency problems with most things. Except Emacs. E.g., Eshell is much snappier for issuing shell commands than bash on iTerm2.
Re:Magit 3.0 by jonnycomputer on Tuesday May 25, 2021 @11:40PM (#27285998)
I don't find emacs especially laggy on mac os.