I did some digging and found that impoly eventually calls /Applications/MATLAB_R2015a.app/toolbox/images/imuitools/private/polygonSymbol.m which (amazingly) spend almost a full second reading in "point.png" using imread! I think these are just the vertices of the polygon. It seems like this is very wasteful....
why is impoly so slow?
2 views (last 30 days)
Can someone explain to me why it takes approximately 2.5 seconds for impoly to create a simple object using my 2.8GHz quad core Xeon with 32GB?
See code below: