Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling grains.volume from grain3d/display is slow #2092

Open
kilir opened this issue Mar 15, 2024 · 0 comments
Open

calling grains.volume from grain3d/display is slow #2092

kilir opened this issue Mar 15, 2024 · 0 comments

Comments

@kilir
Copy link
Contributor

kilir commented Mar 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant