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

Refactor _find_chain_item #589

Open
ZedThree opened this issue Nov 9, 2023 · 0 comments
Open

Refactor _find_chain_item #589

ZedThree opened this issue Nov 9, 2023 · 0 comments

Comments

@ZedThree
Copy link
Member

ZedThree commented Nov 9, 2023

get_label_item constructs a dict from all the labels that could potentially be in the call chain and then looks up the label. This simplifies the look-up but we could probably refactor it to bail early once we've found it instead. Need to profile, but I feel like we can get a little bit of a speed up here, especially for larger projects.

We could also get rid of strip_type by adding a property to FortranVariable to return it, and use that in FortranVariable.full_type too.

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