Why does it take Matlab so long to delete handles and objects that are interconnected?
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
Olivier Lartillot
2016 年 5 月 5 日
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 件のコメント
per isakson
2014 年 4 月 21 日
編集済み: per isakson
2014 年 4 月 21 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!