Fortran-FOSS-Programmers / ford

Automatically generates FORtran Documentation from comments within the code.

Home Page:https://forddocs.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor `_find_chain_item`

ZedThree opened this issue · comments

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.