Object Deletion is VERY slow

조회 수: 4 (최근 30일)
Jeff
Jeff 2011년 10월 6일
I use a hierarchy of handle class objects to extract, organize and analyze A/D data. Objects up and down the hierarchy have references to objects above and below them (like a doubly linked list, in c I would say they have pointers to each other but I'm not sure what the correct nomenclature is in Matlab). The code was written on a Mac in R2009b and everything worked fine. I recently upgraded to R2011b, still on a Mac, and suddenly the objects associated with a data set that took a few seconds to delete take more like 10 minutes. Performance monitoring does not indicate that any of my delete methods is taking very long so the problem must be internal to the handle superclass. What has changed that could cause this problem, is there any alternative method to delete a large number of objects quickly and is there any command to just wipe out the whole heap?

답변 (2개)

Peter O'Connor
Peter O'Connor 2011년 12월 15일
I hear you! VERY slow. Seems like it's some problem with handling circular references.

Peter O'Connor
Peter O'Connor 2011년 12월 15일
Here's a partial explanation: http://www.mathworks.ch/support/solutions/en/data/1-8PHW5N/index.html?solution=1-8PHW5N, though it doesn't help much when it comes to circular object references.

카테고리

Help CenterFile Exchange에서 Construct and Work with Object Arrays에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by