NREL / BuildingMOTIF

Building Metadata OnTology Interoperability Framework (BuildingMOTIF). For models, see https://models.open223.info/
https://buildingmotif.readthedocs.io/
Other
49 stars 7 forks source link

Add new transitive_parameters method to accelerate library loading #314

Closed gtfierro closed 4 months ago

gtfierro commented 5 months ago

The prior implementation of check_template_dependency_relationship used inline_dependencies to check the parameters of template dependencies. inline_dependencies can be slow-ish because it copies the bodies of templates (these are graphs, so they inherit the performance characteristics of the underlying store). We can compute the parameters through the dependency tree automatically without copying the graphs, which is much faster.

Some quick numbers:

Some modest improvements, but there is plenty left to do for optimization!

gtfierro commented 4 months ago

Thanks!