Re: How to speed up my .m code?



On 16 Sep, 19:58, Walter Roberson <rober...@xxxxxxxxxxxx> wrote:
Tunante Gomez wrote:
....
Is there another way
to speed up my code without change it?

No, R13 code cannot be compiled to a MEX file. Modern versions of the Matlab
compiler compile to an intermediate code representation that runs at the same speed
as Matlab would run on the same machine.

In order to speed up your code without changing it, you would have to do
one or more of the following:
- use a faster processor
- have more primary cache on the processor
- have more main memory
- increase the FSB (Front Side Bus) speed of your motherboard
- increase the speed of the memory on your system
- use a processor with multiple cores

Using multiple cores might not provide any noticeable speed increase: it
would depend greatly on exactly what your code was.

Since you are going heavy-duty, you might as well suggest the
obvious:
Use something else than matlab. C++ with the GIL library (distributed
with Boost) would be an intriguing alternative.

http://opensource.adobe.com/wiki/display/gil/Generic+Image+Library

Rune
.



Relevant Pages

  • Re: a standalone application from matlab compiler?
    ... Therefore I use the Matlab compiler to ... create a standalone .exe file. ... Out of memory. ...
    (comp.soft-sys.matlab)
  • Re: newbie question: creating my first mex-file - compiling on windows xp
    ... > Which compiler should I download in order to get started? ... For mex, LCC that comes wirth matlab suffices for getting started. ... Install the MS Visual studio first, and see if there are more options ...
    (comp.soft-sys.matlab)
  • Re: newbie question: creating my first mex-file - compiling on windows xp
    ... There is a PDF file available at the Matworks site. ... > I found something with google called "Connecting C and matlab" 4 pages. ... >> IDE you will almost certainly find it easier to learn C there. ... I'd go with the compiler with the best IDE ...
    (comp.soft-sys.matlab)
  • Re: Compiling 64-bit mex file on MacOS X
    ... However when I run the program it crashes Matlab. ... mwPointer plhs,prhs ... You need either provide an explicit interface so the compiler can do the cast, or store the dimensions in variables of the appropriate type. ... The problem is with the architecture of the gfortran compiler you installed ...
    (comp.soft-sys.matlab)
  • Re: How to speed up my .m code?
    ... Modern versions of the Matlab ... compiler compile to an intermediate code representation that runs at the same speed ... increase the speed of the memory on your system ... Using multiple cores might not provide any noticeable speed increase: ...
    (comp.soft-sys.matlab)