我对 GNU Octave 非常陌生,但需要运行一个用 Octave 编写的脚本 foo.m
。在java中,我知道可以为进程分配更多内存,从而加快速度,例如使用-Xmx4g
。 Octave中有类似的选项吗?
最佳答案
In java, I know it's possible to allocate more memory to a process, and thereby speed it up, using, e.g., -Xmx4g. Is there a similar option in octave?
您问题的答案是否。
在 Octave 解释器启动期间可以指定的唯一可以提高性能的标志是 --jit-compiler
。有关更多信息,请阅读 octave --help
。
jit 编译器是 2012 年的一个 GSoC 项目,是一个功能相当有限的概念验证。由于它并没有多大作用,因此已在 Octave 7 中删除。
现代 Octave 没有 JIT 编译器。
关于memory - 运行 Octave 更快,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24867206/