
575Graphics and GUI
10.4.1.7.3 Fixing the New uitable’s Performance
Running the MATLAB Proler when preparing a uitable, we can easily see that the vast
majority of the time is spent in the arrayviewfunc function. This function includes multiple
helper functions, dispatched from the main function in switchyard format.* After drilling
into the proling report and the nontrivial code, the source of uitable’s slowness appears
to emanate from the fact that each table cell is considered separately, and wrapped within
a MATLAB class object.
This implementation provides exibility for cases when a table column might contain
both numeric and nonnumer