How can I improve the speed of keyboard response in Live Editor?

6 次查看(过去 30 天)
The keyboard response is too slow in Live Editor than M-file editing mode. How can I improve the speed of keyboard response in Live Editor?
Thanks!
  14 个评论
Mikhail
Mikhail 2019-9-20
This might help: https://www.mathworks.com/matlabcentral/answers/429959-typing-in-the-live-editor-is-slow-on-linux
Scott Smith
Scott Smith 2023-11-20
Hey all, if you make it this far down the thread, (wow, you want answers bad) see my posted answer. I'd love to hear back if that's the issue.
I think this issue still exists (2023) and it's related to the "Java Heap Memory" setting.
Turning it up has helped me write more complex live scripts, which have made some good headway in their utility since posting in 2019.
That said, my opinion for them is they are good for small to medium scripts that you need someone interacting with them tweaking settings constantly. Like fitting
If you're crunching though lots of data, or need more extensive interactivity, regular scripts and writing custom guis and interactions are better.

请先登录,再进行评论。

回答(2 个)

Scott Smith
Scott Smith 2019-9-15
编辑:Scott Smith 2019-9-16
Hi, bit of a simplistic answer here but a while back I contacted support about this, when I too was seeing slow response in the Live Editor Matlab R2019a. Very annoying. However, I'm using a Surface Book 2, (i9, 256GB SSD, dedicated graphics card but forget the specifics) and the best advice I got was increasing the Java Heap Memory in HOME (Tab)> PREFERENCES (in the Enviroment section of toolbar)>MATLAB>GENERAL>JAVA HEAP MEMORY. I cranked mine up to an arbitrary 3677MB and that reduced the lag enough to be funtional. There is a bit, but it's not as horrible. the max is something like 4077MB (for me) and it has almost no lag.
Anyway I don't know the drawbacks of doing this, but it makes my life easier and I hope it helps yours too.

Chris Jennings
Chris Jennings 2019-9-15
编辑:Chris Jennings 2019-9-15
I upgraded my Surface Book 1 to a Surface Book 2 (i7, 16GB RAM, GTX1060) partly to resolve this issue. It made some difference but still not ideal. I just maxed my Java HEAP out to 4077MB and it's definitely more responsive.
So ... many thanks for your solution Scott !
  2 个评论
Nigel Nettheim
Nigel Nettheim 2023-7-5
Yes, that seems to be a good solution, thanks Scott. But why is the default java heap memory set so low, if a higher value works better (at least when editing large files)? Could this resource be better documented by Matlab, so as to be more easily reached when needed? Have any drawbacks to this procedure (using the maximum heap memory) surfaced in the meantime? Would a value higher than the default but less than the maximum be a better choice?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 시작과 종료 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!