Performance problems with linkprop

1 view (last 30 days)
Martin Chavez
Martin Chavez on 30 Jun 2016
Commented: Martin Chavez on 1 Jul 2016
Hi, I’m experiencing some performance issue with the Matlab Version R2014b in comparison with R2012a. We’d like to update our tools to work with the new graphic system of Matlab but have some compatibility problems.
I could identify with the help of the profiler in which functions R2014b is taking more time in comparison to R2012a and found out that linkprop takes 0.03s in R2012a and 4.6s in R2014b (150 times more!). Moreover, the process LinkProp>LinkProp.processUpdate is been called 4800 times in R2014b and it’s no present in R2012a. The calling code in linkprop function is different in the two versions:
h = matlab.graphics.internal.LinkProp(h,p,varargin{:}); %(R2014b)
h = graphics.linkprop(h,p); %(R2012a)
Do you have any idea, how the problem can be solved? Until we fix this issue we will have to stick to the older Matlab version because the performance loss is tremendous.
Thanks!
Regards,
Dr. Martin Chávez (Daimler AG)

Answers (1)

Yair Altman
Yair Altman on 30 Jun 2016
It's difficult to diagnose or offer workarounds to your specific problem without knowing which specific properties you're linking. But here are a few general ideas that you might try:
  1. R2014b is the first Matlab release that uses the new graphics engine (HG2). Subsequent Matlab releases have better behavior and performance for HG2, and earlier releases would avoid the HG1=>HG2 compatibility issues. So, 14a or 16a would probably be better upgrades for you than 14b.
  2. I suggest upgrading to R2014a instead of 14b. This is the last release that still uses HG1. It seems like a safer upgrade than 12a=>14b or 12a=>16a. Once you get 14a working properly you could upgrade to 16a or 16b at your leisure.
  3. It is possible that your linked properties interfere with one another, causing a cascading updates effect. Try linking other properties that provide similar results, or avoid the linking altogether.
  1 Comment
Martin Chavez
Martin Chavez on 1 Jul 2016
Thanks for the Information. I've solved the problem by asking if the object of linkprop still exists. It seems to be the case they are not correctly deleted when I override.

Sign in to comment.

Categories

Find more on Visual Exploration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!