mtex icon indicating copy to clipboard operation
mtex copied to clipboard

calling grains.volume from grain3d/display is slow

Open kilir opened this issue 3 months ago • 0 comments

The function grain3d/display computes grains.volume every time it is called which is fine for a few grains but may become quite annoying with many grains. Would eventually storing the value within grains and deleting only when subsetting/modifying be an option?

https://github.com/mtex-toolbox/mtex/blob/59d8b4db049d26e2b091b4e87459e5226acabb7f/EBSDAnalysis/%40grain3d/display.m#L12C1-L12C27

Cheers,

Rüdiger

kilir avatar Mar 15 '24 15:03 kilir