-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
medium-large NA matrices hang emacs #1307
Comments
I think we need a general solution for this. Any large text should be elided with an optional incremental expansion. WDYT? |
Not sure what you mean by "optional incremental expansion". |
This is more than just matrices/frames, it also slows down with large vectors. Is there a way to benchmark this? Right now it's a perception, the best I can do is a video showing me typing ess-lag.mp4While the above is in a normal emacs/ess session, I've repeated it (same results) in (add-to-list 'load-path "~/.emacs.d/elpa/ess-20241127.1620/")
(require 'ess)
(require 'ess-site) How is it best to "find" (profile?) where the slowdown is occurring? |
At the risk of soundy needing ... I recognize this is a macos-only thing, and it seems likely few if any of the devs on ESS are using macos. Or if some do use macs, this is likely "just me", reinforced by the fact that nobody else is complaining about this. I'd like to know how to better research this so that I can either find if/where it's happening, or provide better information here. And please again, I recognize everybody here is doing volunteer coding and I've paid for nothing. I'm deeply appreciative, and would like to find a way to get to the bottom of this. There are two aspects that I find interesting:
I've rerun the demo using ess-slowdown.mp4With a quick Running with simply Running the colnames/matrix combination that shows the significant slowdown, I get Comparing them side-by-side
I've repeated both (slowdown and no-slowdown) a few times, and Besides the built-in |
I just transitioned to macos, and matrices that worked fine in linux/windows now bring emacs to a crawl.
The first time it happened, I was ablt to get a crash report (or
Sample
in macos-speak?) of the process, and while rather large, I'm hoping that it means something to one or more of you.Large "Sample" of hung emacs/ess process
(truncated for github comment length)
It's not a large matrix. In fact, while this works just fine
This causes emacs/ess to crawl (or nearly-hang):
The presence of column names isn't critical but seems to make it slightly worse (so try without the
\
colnames<-`` and it should still slow down for you).On a ubuntu-24.04 box, doing the same thing does produce very-slightly-difference responsiveness (the
NA
code is very slightly sluggish) but nowhere near as bad as this. I hope the fact that something can be observed in linux helps troubleshoot this, though I never though to mention it before I switched to macos.Thanks!
The text was updated successfully, but these errors were encountered: