Why does my MATLAB C Math Library application run progressively slower?
Ältere Kommentare anzeigen
I am writing a program that executes a loop and must run very quickly (each loop must be under
0.001 sec). The slowest part of a function is by far the line:
mlfAssign(&A, mlfDoubleMatrix(numSpikes, 4, listSpikes, NULL));
This line takes longer and longer each time the function is called.
The context of the function call is as follows:
func()
{
mxArray *A;
double listSpikes[..]
...
//Not inside a loop
mlfAssign(&A, mlfDoubleMatrix(numSpikes, 4, listSpikes, NULL));
...
mxDestroyArray(A);
}
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Software Development Tools finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!