Extraneous repeat calls to BuildDependencyGraph()

Open
#998 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@isc-jili is already working on this.

Since Dec 23, 2025.

Assessment

This issue has not been assessed yet.

Description

bug

After sync loading of dependencies was made the default once #885 was done, there only ever needs to be a single top level call to BuildDependencyGraph. Specifically, BuildDependencyGraph() gets called for every single dependency, which is wasted cycles.

This is observed with extreme severity with a case such as HSLIB, where a high number of modules are affected.

What really should happen, is break LoadNewModule() into two different methods:

  1. LoadBaseModule() will load dependent modules (build dependency graph ONCE) before loading itself and
  2. LoadDependentModule() will just load itself.
Dominant language
ObjectScript
Stars
41
Forks
33
Avg merge
23h 20m
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from intersystems/ipm

All issues in intersystems/ipm

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.