Re: [Matlab-emacs-discuss] matlab-emacs slows down

2014-03-06 Thread Eric Ludlam
Hi, I don't recall why we picked 8192 as the size of the back-search buffer. If some other value makes sense, I'll be happy to update the code with the revised smaller number. Of course, with the newer MATLAB I tried out today, it no longer emits the hyperlink text at all, so it is searching

Re: [Matlab-emacs-discuss] matlab-emacs slows down

2014-03-06 Thread Odd Andersen
Hi Sina, That does sound like the function I was talking about. In my matlab.el version (2012), there was no harcoded limit, so the problem with this function was perhaps more severe than in your case. If you still have performance issues, the elisp profiler is a useful tool to pinpoint the probl

Re: [Matlab-emacs-discuss] matlab-emacs slows down

2014-03-06 Thread Sina Tootoonian
Dear Odd and Ondra, I did manage to find an earlier (2011) discussion (propmpted by Ondra) of a very similar problem, with very similar functions being implicated (rendering error markup). The specific problem was that a re-search-backward call was being made with a nil second argument, forcing it

Re: [Matlab-emacs-discuss] matlab-emacs slows down

2014-03-06 Thread Odd Andersen
Hi, I used to have the same problem, and found it frustrating that there seemed to be no discussion of this issue anywhere. Finally, I was able to fix it myself. Here's what I did: 1. I ran matlab-shell with my usual workflow until it started becoming unresponsive. 2. I started the em

Re: [Matlab-emacs-discuss] matlab-emacs slows down

2014-03-06 Thread Ondra Kamenik
Dear developer(s), I join Sina in appreciation of the great work you have done. And I join Sina in the observation that the responsiveness of matlab-shell slows down when the buffer gets large, often with many outputs of warning() command. And I noticed that it gets better if I call "close all;".