Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Virtual modules evaluating unrelated .modulerc's #591

@smprather

Description

@smprather

HIi Xavier, et al--

I am using virt-modules to manage 1000's of tools/versions (for a "large EDA company"). Load time is ~1.5s, and I need to get that down, preferably to ~0.2s-max (0.1s better obviously).

I have a few ideas to make it faster, but the biggest impact would be preventing evaluation of unrelated sub-directory .modulerc's. I'm willing to attempt the fix myself, but I want to make sure I'm not fixing something that's not broken (ie, needs to be that way for a case I'm not considering).

Example:

foo/bar/.modulerc
foo/baz/.modulerc

module load foo/bar/x.y.z

Both bar/.modulerc and baz/.modulerc are being executed. I have ~10 of bar/baz/etc, so I'm executing 9 .modulerc's that generate virt-modules that aren't needed for the target.

Comments?

Thanks!
--Myles

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions