Why does it take Matlab so long to delete handles and objects that are interconnected?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have different maps a and b. The values of that maps are handles to objects that are interconnected to each other. So a(1) links to the object that is also stored in b. That object might even link back to its refferer. When I delete the object it takes very long till Matlab comes out of the busy state. Is there anything I can do about the enourmous time it takes Matlab to delete the obeject?
0 commentaires
Réponses (2)
Olivier Lartillot
le 5 Mai 2016
I face the same problem, and I might have an idea about what is happening. It seems due to the fact that the Handle Class Destructor in Matlab features a particular procedure for “Destruction of Objects with Cyclic References”. But this procedure is too slow. I have an idea how to improve that but that would require to toggle off this aforementioned feature. I submitted a question related to that: http://se.mathworks.com/matlabcentral/answers/282772-destruction-of-objects-with-cyclic-references-matlab-automated-procedure-is-much-too-slow-how-to-t
0 commentaires
per isakson
le 21 Avr 2014
Modifié(e) : per isakson
le 21 Avr 2014
We continue to look for opportunities to improve MATLAB object
performance and examples from you are very helpful for learning
what changes will make an impact on real applications. If you
have examples or scenarios you want us to look at, please let me
know.
I propose that you prepare an example, which illustrates this slow clean-up, and send it to The MathWorks (tech support and/or Loren directly). And why not attach it to your question?
0 commentaires
Voir également
Catégories
En savoir plus sur Graphics Object Programming dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!