Why does my MATLAB C Math Library application run progressively slower?
Mostra commenti meno recenti
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);
}
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Software Development Tools in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!