File Exchange

image thumbnail

Benchmark clear() behavior with OOP handle

version 1.1 (1.77 KB) by

Examine Matlab's "clear" behavior with different handle reference configurations.

1 Download

Updated

View License

Create N handle objects, store 1-3 references to each.
Order of object creation, number of references, and configuration of references all have drastic impact on "clear" time as function of number of objects. Times range from flat, to linear, to quadratic.

Using a simple handle class:
% % classdef simpleHandle < handle
% % properties
% % ref1;
% % ref2;
% % end
% % methods
% % function self = simpleHandel
% % end
% % end
% % end

Comments and Ratings (0)

Updates

1.1

Administrator requested update in order to auto-add BSD license.

MATLAB Release
MATLAB 7.7 (R2008b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video